[gnome-software/wip/rancell/reviews] Code style - check for NULL in if statement with pointer
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/reviews] Code style - check for NULL in if statement with pointer
- Date: Wed, 2 Mar 2016 01:52:22 +0000 (UTC)
commit 90e6d833485facc580d15844b4d9306ae4847be6
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Mar 2 14:51:28 2016 +1300
Code style - check for NULL in if statement with pointer
src/plugins/gs-plugin-ubuntu-reviews.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-reviews.c b/src/plugins/gs-plugin-ubuntu-reviews.c
index 09d5896..e7a18f9 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -590,7 +590,7 @@ parse_reviews (GsPlugin *plugin, JsonParser *parser, GsApp *app, GError **error)
/* Read in from JSON... (skip bad entries) */
review = parse_review (json_array_get_element (array, i));
- if (review)
+ if (review != NULL)
gs_app_add_review (app, review);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]