summaryrefslogtreecommitdiff
path: root/src/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msg.c b/src/msg.c
index ddaab26..da4783d 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -244,7 +244,7 @@ zenity_msg_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]);
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
break;