Skip to content

Commit 778cd58

Browse files
jbeichzeising
authored andcommitted
Silence GCC 4.2 after 8efdba3
cc1: warnings being treated as errors udev-utils.c: In function 'create_evdev_handler': udev-utils.c:315: warning: 'fd' may be used uninitialized in this function
1 parent 9ff7a78 commit 778cd58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

udev-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ create_evdev_handler(struct udev_device *ud)
316316
struct udev_device *parent;
317317
const char *sysname, *unit;
318318
char name[80], product[80], phys[80], mib[32];
319-
int fd, input_type = IT_NONE;
319+
int fd = -1, input_type = IT_NONE;
320320
size_t len;
321321
bool opened = false;
322322
bool has_keys, has_buttons, has_lmr;

0 commit comments

Comments
 (0)