[gnome-software] trivial: 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] trivial: Code style - check for NULL in if statement with pointer
- Date: Tue, 1 Mar 2016 02:50:28 +0000 (UTC)
commit b2899ccc1c91c82d2b4f3dddc190088a77e30bac
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Mar 1 15:49:02 2016 +1300
trivial: Code style - check for NULL in if statement with pointer
src/gs-app-row.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 32fa2f3..3cba9c9 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -231,7 +231,7 @@ gs_app_row_refresh (GsAppRow *app_row)
gtk_widget_set_visible (priv->folder_label, folder != NULL);
}
- if (gs_app_get_pixbuf (priv->app))
+ if (gs_app_get_pixbuf (priv->app) != NULL)
gs_image_set_from_pixbuf (GTK_IMAGE (priv->image),
gs_app_get_pixbuf (priv->app));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]