summaryrefslogtreecommitdiff
path: root/tools/dbus-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dbus-test.c')
-rw-r--r--tools/dbus-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dbus-test.c b/tools/dbus-test.c
index 94d94f0..ece5d19 100644
--- a/tools/dbus-test.c
+++ b/tools/dbus-test.c
@@ -59,8 +59,8 @@ int main(int argc, char *argv[])
dbus_error_init(&err);
conn = g_dbus_setup_bus(DBUS_BUS_SYSTEM, NULL, &err);
- if (conn == NULL) {
- if (dbus_error_is_set(&err) == TRUE) {
+ if (!conn) {
+ if (dbus_error_is_set(&err)) {
fprintf(stderr, "%s\n", err.message);
dbus_error_free(&err);
} else