From 8db97768758dc4dc1f30abc849d6a0e9f74d3aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 8 Oct 2017 20:15:39 +0200 Subject: [PATCH] scalebutton: Fix comparison for empty icon list https://bugzilla.gnome.org/show_bug.cgi?id=786220 --- gtk/gtkscalebutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index 8423cd605e..2b331b008e 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -985,7 +985,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button) const gchar *name; guint num_icons; - if (!priv->icon_list || ((char*)priv->icon_list)[0] == '\0') + if (!priv->icon_list || priv->icon_list[0][0] == '\0') { gtk_image_set_from_icon_name (GTK_IMAGE (priv->image), "image-missing",