[gnome-software] trivial: Fix FALSE/NULL confusion spotted with GCC6



commit cfedc2681be899599453b3c6174af02d771899ec
Author: Richard Hughes <richard hughsie com>
Date:   Thu Mar 3 10:47:20 2016 +0000

    trivial: Fix FALSE/NULL confusion spotted with GCC6

 src/gs-app.c                             |    2 +-
 src/plugins/gs-plugin-shell-extensions.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 6eed115..ad6f6f7 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1641,7 +1641,7 @@ gs_app_set_rating (GsApp *app, gint rating)
 GArray *
 gs_app_get_review_ratings (GsApp *app)
 {
-       g_return_val_if_fail (GS_IS_APP (app), FALSE);
+       g_return_val_if_fail (GS_IS_APP (app), NULL);
        return app->review_ratings;
 }
 
diff --git a/src/plugins/gs-plugin-shell-extensions.c b/src/plugins/gs-plugin-shell-extensions.c
index 3becb1d..8036f8e 100644
--- a/src/plugins/gs-plugin-shell-extensions.c
+++ b/src/plugins/gs-plugin-shell-extensions.c
@@ -464,7 +464,7 @@ gs_plugin_shell_extensions_parse_app (GsPlugin *plugin,
                                                               app,
                                                               json_ver_map,
                                                               error))
-                       return FALSE;
+                       return NULL;
        }
 
        /* add a screenshot, which curiously isn't in the json */


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