Skip to content

Commit e32d3f1

Browse files
iakovQbicz
authored andcommitted
Initialize local variable with smth meaningful
I prefer explicit INVALID rather than possible compiler warning about uninitialized var sometimes later
1 parent 9d569ba commit e32d3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mac/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
694694
{
695695
hid_device *dev = NULL;
696696
io_registry_entry_t entry = MACH_PORT_NULL;
697-
IOReturn ret;
697+
IOReturn ret = kIOReturnInvalid;
698698

699699
dev = new_hid_device();
700700

0 commit comments

Comments
 (0)