mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gschema-compile: return quickly on parse error
Suggested by Christian Persch in #616102
This commit is contained in:
parent
bed462046a
commit
3c54cc074d
@ -360,6 +360,9 @@ end_element (GMarkupParseContext *context,
|
|||||||
state->value = g_variant_parse (state->type, state->string->str,
|
state->value = g_variant_parse (state->type, state->string->str,
|
||||||
NULL, NULL, error);
|
NULL, NULL, error);
|
||||||
|
|
||||||
|
if (state->value == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
if (state->l10n)
|
if (state->l10n)
|
||||||
{
|
{
|
||||||
if (state->context)
|
if (state->context)
|
||||||
|
Loading…
Reference in New Issue
Block a user