summaryrefslogtreecommitdiff
path: root/src/fileselection.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/fileselection.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/fileselection.c')
-rw-r--r--src/fileselection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileselection.c b/src/fileselection.c
index 3ccd11dd..27db0f40 100644
--- a/src/fileselection.c
+++ b/src/fileselection.c
@@ -189,7 +189,7 @@ zenity_fileselection_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