[gobject-introspection/wip/transformer] Return when we hit an error on missing "name"
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] Return when we hit an error on missing "name"
- Date: Fri, 30 Jul 2010 00:10:46 +0000 (UTC)
commit 8ae98e7e7d9eeafc5a0a36c8ccd0a976692fbbb7
Author: Colin Walters <walters verbum org>
Date: Thu Jul 29 18:02:17 2010 -0400
Return when we hit an error on missing "name"
girepository/girparser.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/girepository/girparser.c b/girepository/girparser.c
index d725602..28ca5d5 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -1954,7 +1954,10 @@ start_type (GMarkupParseContext *context,
int pointer_depth;
if (name == NULL)
- MISSING_ATTRIBUTE (context, error, element_name, "name");
+ {
+ MISSING_ATTRIBUTE (context, error, element_name, "name");
+ return FALSE;
+ }
pointer_depth = 0;
ctype = find_attribute ("c:type", attribute_names, attribute_values);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]