From 1a61e1ea2357918d0044992dc3c97e6a8c857260 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 1 Dec 2012 13:58:41 +0100 Subject: [PATCH] gtkliststore: Add explicit braces to avoid dangling else Otherwise the following else becomes attached to the wrong if. --- gtk/gtkliststore.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index 2d49a73f53..467bac0f15 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -2437,10 +2437,12 @@ list_store_start_element (GMarkupParseContext *context, else if (strcmp (element_name, "row") == 0) ; else if (strcmp (element_name, "column") == 0) - for (i = 0; names[i]; i++) - if (strcmp (names[i], "type") == 0) - data->column_type_names = g_slist_prepend (data->column_type_names, - g_strdup (values[i])); + { + for (i = 0; names[i]; i++) + if (strcmp (names[i], "type") == 0) + data->column_type_names = g_slist_prepend (data->column_type_names, + g_strdup (values[i])); + } else if (strcmp (element_name, "columns") == 0) ; else if (strcmp (element_name, "data") == 0)