summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-05-10 08:43:37 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-05-10 08:43:37 +0000
commit60709fc61959f4ead3e305a0de2cd2419c41e8b4 (patch)
treee796cb28e8586ea20098c7f17aa29612b46ce4cb /input
parentd997f1912250982b6b7e4eae7516245c9be291b7 (diff)
Fix unitialized memory access
Diffstat (limited to 'input')
-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;