summaryrefslogtreecommitdiffstats
path: root/input/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/device.c')
-rw-r--r--input/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input/device.c b/input/device.c
index d1c08190..b79bbc45 100644
--- a/input/device.c
+++ b/input/device.c
@@ -995,7 +995,7 @@ int input_device_register(DBusConnection *conn, bdaddr_t *src, bdaddr_t *dst,
err = register_path(conn, path, idev);
- if (!err && *ppath)
+ if (!err && ppath)
*ppath = path;
return err;
@@ -1016,7 +1016,7 @@ int fake_input_register(DBusConnection *conn, bdaddr_t *src,
err = register_path(conn, path, idev);
- if (!err && *ppath)
+ if (!err && ppath)
*ppath = path;
return err;