summaryrefslogtreecommitdiff
path: root/gtk/gtkcelllayout.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkcelllayout.c')
-rw-r--r--gtk/gtkcelllayout.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkcelllayout.c b/gtk/gtkcelllayout.c
index c0f54f2676..2783ce8b50 100644
--- a/gtk/gtkcelllayout.c
+++ b/gtk/gtkcelllayout.c
@@ -330,9 +330,11 @@ attributes_start_element (GMarkupParseContext *context,
guint i;
if (strcmp (element_name, "attribute") == 0)
- for (i = 0; names[i]; i++)
- if (strcmp (names[i], "name") == 0)
- parser_data->attr_name = g_strdup (values[i]);
+ {
+ for (i = 0; names[i]; i++)
+ if (strcmp (names[i], "name") == 0)
+ parser_data->attr_name = g_strdup (values[i]);
+ }
else if (strcmp (element_name, "attributes") == 0)
return;
else