Don't return FALSE when a pointer is expected

Pointed out in bug 623956
This commit is contained in:
Matthias Clasen 2010-07-12 07:50:36 -04:00
parent 90285b0643
commit dc8cf867c8
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -149,7 +149,7 @@ replay_parser_end (GMarkupParseContext *ctx,
g_string_free (string, TRUE);
strings_allocated--;
return FALSE;
return NULL;
}
result = string->str;