[gnome-software/wip/temp/ubuntu-xenial-rebased: 144/329] Fix if statement coding style
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 144/329] Fix if statement coding style
- Date: Fri, 29 Apr 2016 13:57:26 +0000 (UTC)
commit f7ba2e467d772e21b3415afc0901f3204efb0654
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]