summaryrefslogtreecommitdiffstats
path: root/gdbus/polkit.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-11-27 17:39:01 -0200
committerMarcel Holtmann <marcel@holtmann.org>2010-12-08 16:33:06 +0100
commit752a2ccec8cab65e18b9a57be6cc9adf6cc1f444 (patch)
treeb1a34c0d14e3c3586bbadfb4a69656499b9ed97a /gdbus/polkit.c
parent5713d5e19f9b6d67d1570fd09c647a5640a1a1a6 (diff)
downloadofono-752a2ccec8cab65e18b9a57be6cc9adf6cc1f444.tar.bz2
gdbus: explicitly compare pointers to NULL
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
Diffstat (limited to 'gdbus/polkit.c')
-rw-r--r--gdbus/polkit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbus/polkit.c b/gdbus/polkit.c
index ed876cab..aef5075b 100644
--- a/gdbus/polkit.c
+++ b/gdbus/polkit.c
@@ -163,7 +163,7 @@ int polkit_check_authorization(DBusConnection *conn,
msg = dbus_message_new_method_call(AUTHORITY_DBUS, AUTHORITY_PATH,
AUTHORITY_INTF, "CheckAuthorization");
- if (!msg) {
+ if (msg == NULL) {
dbus_free(data);
return -ENOMEM;
}