[gtk+] Fix a misleading condition
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix a misleading condition
- Date: Mon, 16 Feb 2015 03:23:15 +0000 (UTC)
commit 0d57d211927c4785a9a9d8cec690de7401cf9090
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 15 22:00:49 2015 -0500
Fix a misleading condition
gcc5 rightfully complains about this condition being unclear.
gtk/gtkbuilderparser.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index ab7d3d4..70fd778 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -947,23 +947,23 @@ subparser_end (GMarkupParseContext *context,
if (data->subparser->parser->end_element)
data->subparser->parser->end_element (context, element_name,
data->subparser->data, error);
-
- if (!strcmp (data->subparser->start, element_name) == 0)
+
+ if (strcmp (data->subparser->start, element_name) != 0)
return;
-
+
gtk_buildable_custom_tag_end (GTK_BUILDABLE (data->subparser->object),
data->builder,
data->subparser->child,
element_name,
data->subparser->data);
g_free (data->subparser->parser);
-
+
if (GTK_BUILDABLE_GET_IFACE (data->subparser->object)->custom_finished)
data->custom_finalizers = g_slist_prepend (data->custom_finalizers,
data->subparser);
else
free_subparser (data->subparser);
-
+
data->subparser = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]