From 363e791d08996e29231897079bd66da87140fea3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Jul 2015 18:38:01 -0400 Subject: [PATCH] GtkActionHelper: Avoid null deref in debug code --- gtk/gtkactionhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));