From f3fcc109f4968d92d69b4738c7d985ef2d330055 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Thu, 11 Sep 2014 10:27:43 +0200 Subject: [PATCH] Fix comparison of registration_id Fixes #193 --- dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus.c b/dbus.c index 8221561b8..93193db5f 100644 --- a/dbus.c +++ b/dbus.c @@ -379,7 +379,7 @@ static void on_bus_acquired(GDBusConnection * connection, &interface_vtable, NULL, NULL, NULL); - if (!registration_id > 0) { + if (registration_id <= 0) { fprintf(stderr, "Unable to register\n"); exit(1); }