Commit dc8cf867 authored by Matthias Clasen's avatar Matthias Clasen

Don't return FALSE when a pointer is expected

Pointed out in bug 623956
parent 90285b06
......@@ -1218,7 +1218,7 @@ dictionary_get_value (AST *ast,
if (!(subvalue = ast_get_value (dict->keys[0], subtype, error)))
{
g_variant_builder_clear (&builder);
return FALSE;
return NULL;
}
g_variant_builder_add_value (&builder, subvalue);
......@@ -1226,7 +1226,7 @@ dictionary_get_value (AST *ast,
if (!(subvalue = ast_get_value (dict->values[0], subtype, error)))
{
g_variant_builder_clear (&builder);
return FALSE;
return NULL;
}
g_variant_builder_add_value (&builder, subvalue);
......@@ -1256,14 +1256,14 @@ dictionary_get_value (AST *ast,
if (!(subvalue = ast_get_value (dict->keys[i], key, error)))
{
g_variant_builder_clear (&builder);
return FALSE;
return NULL;
}
g_variant_builder_add_value (&builder, subvalue);
if (!(subvalue = ast_get_value (dict->values[i], val, error)))
{
g_variant_builder_clear (&builder);
return FALSE;
return NULL;
}
g_variant_builder_add_value (&builder, subvalue);
g_variant_builder_close (&builder);
......
......@@ -149,7 +149,7 @@ replay_parser_end (GMarkupParseContext *ctx,
g_string_free (string, TRUE);
strings_allocated--;
return FALSE;
return NULL;
}
result = string->str;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment