summaryrefslogtreecommitdiffstats
path: root/gdbus/polkit.c
diff options
context:
space:
mode:
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;
}