Don't return FALSE when a pointer is expected
authorMatthias Clasen <mclasen@redhat.com>
Mon, 12 Jul 2010 11:50:36 +0000 (07:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 12 Jul 2010 20:35:18 +0000 (16:35 -0400)
Pointed out in bug 623956

glib/gvariant-parser.c
glib/tests/markup-subparser.c

index 68c063dc7576ca68daa658b445d12515f057a74a..13d8e22cf5c0d7713e843d7a2a9c78ac191f6b65 100644 (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);
index 0b3c746d2156b0c19f22877d9668319f60467792..b766ddf13412c0313f5b9f53c3f4702e20dadb77 100644 (file)
@@ -149,7 +149,7 @@ replay_parser_end (GMarkupParseContext  *ctx,
       g_string_free (string, TRUE);
       strings_allocated--;
 
-      return FALSE;
+      return NULL;
     }
 
   result = string->str;