Skip to content

Commit

Permalink
Fix comparison of registration_id
Browse files Browse the repository at this point in the history
Fixes #193
  • Loading branch information
knopwob committed Sep 11, 2014
1 parent 4b7d1f7 commit f3fcc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbus.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit f3fcc10

Please sign in to comment.