projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bed4620
)
gschema-compile: return quickly on parse error
author
Ryan Lortie
<desrt@desrt.ca>
Mon, 19 Apr 2010 15:05:04 +0000
(11:05 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Tue, 20 Apr 2010 14:37:33 +0000
(10:37 -0400)
Suggested by Christian Persch in #616102
gio/gschema-compile.c
patch
|
blob
|
history
diff --git
a/gio/gschema-compile.c
b/gio/gschema-compile.c
index
4e2de4d
..
1e31fae
100644
(file)
--- a/
gio/gschema-compile.c
+++ b/
gio/gschema-compile.c
@@
-360,6
+360,9
@@
end_element (GMarkupParseContext *context,
state->value = g_variant_parse (state->type, state->string->str,
NULL, NULL, error);
+ if (state->value == NULL)
+ return;
+
if (state->l10n)
{
if (state->context)