evdev: fix a warning. fd should have initialized value.
authorGwanglim Lee <gl77.lee@samsung.com>
Tue, 23 Aug 2016 02:16:18 +0000 (11:16 +0900)
committerjeon <jhyuni.kang@samsung.com>
Mon, 17 Feb 2020 06:46:35 +0000 (15:46 +0900)
Change-Id: I699f8c714210d59aef57bf715ded91739bf1342a

src/evdev.c

index ff413bc35b345f7a5ce19dbf98d3153e5f29ef18..00ac2bfa4095ed8176994200e38a926c91fa9022 100644 (file)
@@ -2192,7 +2192,7 @@ evdev_device_create(struct libinput_seat *seat,
        struct libinput *libinput = seat->libinput;
        struct evdev_device *device = NULL;
        int rc;
-       int fd;
+       int fd = -1;
        int unhandled_device = 0;
        const char *devnode;
        const char *sysname = udev_device_get_sysname(udev_device);