[gnome-software: 14/20] fedora-pkgdb-collections: Fix incorrect return of FALSE instead of NULL




commit 55043a3341adeaddfbbb41049efa19d283e44721
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Mar 11 12:12:34 2022 +0000

    fedora-pkgdb-collections: Fix incorrect return of FALSE instead of NULL
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 .../fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c 
b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
index 574e79322..18ee79d4d 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -472,7 +472,7 @@ load_json (GsPluginFedoraPkgdbCollections  *self,
        parser = json_parser_new_immutable ();
 
        if (!json_parser_load_from_mapped_file (parser, self->cachefn, error))
-               return FALSE;
+               return NULL;
 
        root = json_node_get_object (json_parser_get_root (parser));
        if (root == NULL) {
@@ -480,7 +480,7 @@ load_json (GsPluginFedoraPkgdbCollections  *self,
                             GS_PLUGIN_ERROR,
                             GS_PLUGIN_ERROR_INVALID_FORMAT,
                             "no root object");
-               return FALSE;
+               return NULL;
        }
 
        collections = json_object_get_array_member (root, "collections");
@@ -489,7 +489,7 @@ load_json (GsPluginFedoraPkgdbCollections  *self,
                             GS_PLUGIN_ERROR,
                             GS_PLUGIN_ERROR_INVALID_FORMAT,
                             "no collections object");
-               return FALSE;
+               return NULL;
        }
 
        for (guint i = 0; i < json_array_get_length (collections); i++) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]