summaryrefslogtreecommitdiff
path: root/src/color.c
diff options
context:
space:
mode:
authorArx Cruz <acruz@redhat.com>2015-10-02 14:35:06 +0200
committerArx Cruz <acruz@redhat.com>2015-10-02 14:35:06 +0200
commitd063797fdfa73e5bec96d9399ab1bf47173a62d4 (patch)
treec1bc15a4a89c202fe5b01f698540ead21a2e03e3 /src/color.c
parentFixing html option being parsed to other dialogs rather then text-info (diff)
downloadzenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.tar.gz
zenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.tar.bz2
zenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.zip
Fixing GLib-CRITICAL messages
Diffstat (limited to 'src/color.c')
-rw-r--r--src/color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/color.c b/src/color.c
index 05898c4d..ae47b19b 100644
--- a/src/color.c
+++ b/src/color.c
@@ -104,7 +104,7 @@ zenity_colorselection_dialog_response (GtkWidget *widget, int response, gpointer
break;
default:
- if (response < g_strv_length(zen_data->extra_label))
+ if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label))
printf("%s\n",zen_data->extra_label[response]);
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
break;
bgstack15