summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/theme-parser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/theme-parser.c b/src/ui/theme-parser.c
index b7d22381..c94e0e9a 100644
--- a/src/ui/theme-parser.c
+++ b/src/ui/theme-parser.c
@@ -392,7 +392,11 @@ locate_attributes (GMarkupParseContext *context,
while (name != NULL)
{
- g_return_val_if_fail (retloc != NULL, FALSE);
+ if (retloc == NULL)
+ {
+ retval = FALSE;
+ goto out;
+ }
g_assert (n_attrs < MAX_ATTRS);