~helene-verhaeghe27/cairo-dock-core/bugfix

« back to all changes in this revision

Viewing changes to src/cairo-dock-widget.c

  • Committer: helene-verhaeghe27
  • Date: 2014-10-11 22:22:13 UTC
  • Revision ID: helene.verhaeghe27@gmail.com-20141011222213-d90jz68ogmbjgwa4
widget: need to check null pointer before using it

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
void cairo_dock_widget_reload (CDWidget *pCdWidget)
40
40
{
41
 
        cd_debug ("%s (type %d)", __func__, pCdWidget->iType);
42
 
        if (pCdWidget && pCdWidget->reload)
43
 
                pCdWidget->reload (pCdWidget);
 
41
        if (pCdWidget)
 
42
                cd_debug ("%s (type %d)", __func__, pCdWidget->iType);
 
43
                if (pCdWidget->reload)
 
44
                        pCdWidget->reload (pCdWidget);
44
45
}
45
46
 
46
47