aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/genericmenuitem.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-06-14 22:01:56 -0500
committerTed Gould <ted@gould.cx>2010-06-14 22:01:56 -0500
commitb31f6418f37bc35dc59162d5878eacb5002e3402 (patch)
treec89c29bb8d9eeb8953e34423bb2e2ad2b41a5e8c /libdbusmenu-gtk/genericmenuitem.c
parenta7940079b8a074529ea504efe3e9a033197ea057 (diff)
downloadlibdbusmenu-b31f6418f37bc35dc59162d5878eacb5002e3402.tar.gz
libdbusmenu-b31f6418f37bc35dc59162d5878eacb5002e3402.tar.bz2
libdbusmenu-b31f6418f37bc35dc59162d5878eacb5002e3402.zip
Block the case where the label is being init'd to NULL
Diffstat (limited to 'libdbusmenu-gtk/genericmenuitem.c')
-rw-r--r--libdbusmenu-gtk/genericmenuitem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c
index 1000c68..7239864 100644
--- a/libdbusmenu-gtk/genericmenuitem.c
+++ b/libdbusmenu-gtk/genericmenuitem.c
@@ -158,6 +158,8 @@ get_hpadding (GtkWidget * widget)
static void
set_label (GtkMenuItem * menu_item, const gchar * label)
{
+ if (label == NULL) return;
+
GtkWidget * child = gtk_bin_get_child(GTK_BIN(menu_item));
GtkLabel * labelw = NULL;
gboolean suppress_update = FALSE;