Fix comparison of registration_id

Fixes #193
This commit is contained in:
Sascha Kruse 2014-09-11 10:27:43 +02:00
parent 4b7d1f722c
commit f3fcc109f4

2
dbus.c
View File

@ -379,7 +379,7 @@ static void on_bus_acquired(GDBusConnection * connection,
&interface_vtable, &interface_vtable,
NULL, NULL, NULL); NULL, NULL, NULL);
if (!registration_id > 0) { if (registration_id <= 0) {
fprintf(stderr, "Unable to register\n"); fprintf(stderr, "Unable to register\n");
exit(1); exit(1);
} }