[gnome-software/wip/temp/ubuntu-xenial-rebased: 141/326] Fix if statement coding style



commit c45584a4c455965ec74a079369917e635b2573a1
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Mar 4 14:42:52 2016 +1300

    Fix if statement coding style

 src/plugins/gs-plugin-apt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.c b/src/plugins/gs-plugin-apt.c
index c90e481..f373b49 100644
--- a/src/plugins/gs-plugin-apt.c
+++ b/src/plugins/gs-plugin-apt.c
@@ -621,7 +621,7 @@ aptd_transaction (GsPlugin *plugin, const gchar *method, GsApp *app, GError **er
 
        if (g_strcmp0 (method, "InstallFile") == 0)
                parameters = g_variant_new_parsed ("(%s, true)", gs_app_get_origin (app));
-       else if (app)
+       else if (app != NULL)
                parameters = g_variant_new_parsed ("[%s]", gs_app_get_source_default (app));
        else
                parameters = g_variant_new ("()");


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