[gtk+] Be more careful when parsing gtk-decoration-layout
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Be more careful when parsing gtk-decoration-layout
- Date: Mon, 6 Jan 2014 22:07:28 +0000 (UTC)
commit 260237240172b804da41b1f22d8b8006363c5150
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 6 17:05:53 2014 -0500
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
gtk/gtkheaderbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index f466caf..bbe6faa 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]