diff options
author | Boyan Ding <boyan.j.ding@gmail.com> | 2015-03-06 10:22:15 +0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-03-06 14:50:38 +1000 |
commit | 4ac531bdf6577ab4701b38d333626593abbf327d (patch) | |
tree | 278a4d327e74df5830fe2072a4ec9e9f1326f9ea | |
parent | 7ec0bf7ae2e3753d7e4989495bae80057f39508e (diff) |
Initialize variable 'path' to NULL to silence warning
CC libinput.lo
libinput.c: In function 'xf86libinput_pre_init':
libinput.c:1222:2: warning: 'path' may be used uninitialized in this
function [-Wmaybe-uninitialized]
free(path);
^
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/libinput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libinput.c b/src/libinput.c index 5e616c8..56b93d6 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -1177,7 +1177,7 @@ xf86libinput_pre_init(InputDriverPtr drv, struct xf86libinput *driver_data = NULL; struct libinput *libinput = NULL; struct libinput_device *device; - char *path; + char *path = NULL; pInfo->type_name = 0; pInfo->device_control = xf86libinput_device_control; |