diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-11-27 17:39:01 -0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-12-08 17:38:28 +0100 |
commit | f4bc5d67fc2d49f3f17e05b405f241983e57aece (patch) | |
tree | 3cdd0a84126b4b68752ffc128f140d7d1453201f /gdbus/polkit.c | |
parent | 65e9841ecffe3a3cfd7f655859c6ffa98e4cf6c4 (diff) | |
download | connman-f4bc5d67fc2d49f3f17e05b405f241983e57aece.tar.gz connman-f4bc5d67fc2d49f3f17e05b405f241983e57aece.tar.bz2 connman-f4bc5d67fc2d49f3f17e05b405f241983e57aece.zip |
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.c | 2 |
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; } |