summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/input/main.c b/input/main.c
index 6b5e7c8f..6a667f51 100644
--- a/input/main.c
+++ b/input/main.c
@@ -79,8 +79,12 @@ static int input_probe(const char *path)
{
DBG("path %s", path);
- return g_dbus_register_interface(conn, path, INPUT_INTERFACE,
- input_methods, input_signals, NULL, NULL, NULL);
+ if (g_dbus_register_interface(conn, path, INPUT_INTERFACE,
+ input_methods, input_signals, NULL,
+ NULL, NULL) == FALSE)
+ return -1;
+
+ return 0;
}
static void input_remove(const char *path)