diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-01-06 17:05:53 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-01-06 17:07:21 -0500 |
commit | 260237240172b804da41b1f22d8b8006363c5150 (patch) | |
tree | ca0146909481f1c08df99286b20581dd46734c55 /gtk/gtkheaderbar.c | |
parent | feedf46ddc8d47618e27c7888b223e4706a03cd2 (diff) | |
download | gtk+-260237240172b804da41b1f22d8b8006363c5150.tar.gz |
Be more careful when parsing gtk-decoration-layout
When the string is empty, breaking it at : will not give
us two tokens, and we were parsing garbage, leading to crash.
https://bugzilla.gnome.org/show_bug.cgi?id=721635
Diffstat (limited to 'gtk/gtkheaderbar.c')
-rw-r--r-- | gtk/gtkheaderbar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index f466cafb70..bbe6faad4c 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -359,7 +359,7 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) int n_children = 0; if (tokens[i] == NULL) - continue; + break; t = g_strsplit (tokens[i], ",", -1); |