diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 18:38:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 18:38:01 -0400 |
commit | 363e791d08996e29231897079bd66da87140fea3 (patch) | |
tree | 6a6392678db0a17a25847e476245138bb4366559 /gtk/gtkactionhelper.c | |
parent | bb29c1fcc5398ae5cc236328ea7d5d6f0fdfb476 (diff) | |
download | gtk+-363e791d08996e29231897079bd66da87140fea3.tar.gz |
GtkActionHelper: Avoid null deref in debug code
Diffstat (limited to 'gtk/gtkactionhelper.c')
-rw-r--r-- | gtk/gtkactionhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkactionhelper.c b/gtk/gtkactionhelper.c index 50060ee092..2c286279f7 100644 --- a/gtk/gtkactionhelper.c +++ b/gtk/gtkactionhelper.c @@ -415,7 +415,7 @@ gtk_action_helper_set_action_name (GtkActionHelper *helper, return; GTK_NOTE(ACTIONS, - if (!strchr (action_name, '.')) + if (action_name == NULL || !strchr (action_name, '.')) g_message ("actionhelper: action name %s doesn't look like 'app.' or 'win.' " "which means that it will probably not work properly.", action_name)); |