summaryrefslogtreecommitdiff
path: root/src/text.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/text.c
parentfac40e9c46160a0915d528062dfd19c1afaeac0e (diff)
downloadzenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.tar.gz
Fixing GLib-CRITICAL messages
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index 5657f21..1deecc6 100644
--- a/src/text.c
+++ b/src/text.c
@@ -388,7 +388,7 @@ zenity_text_dialog_response (GtkWidget *widget, int response, gpointer data)
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]);
zenity_util_exit_code_with_data(ZENITY_ESC, zen_data);
break;