This commit is contained in:
twinaphex 2016-12-01 22:24:17 +01:00
parent 4a894afc57
commit 5fdb5b4dcf

View File

@ -387,7 +387,8 @@ static void udev_joypad_remove_device(const char *path)
for (i = 0; i < MAX_USERS; i++)
{
if (udev_pads[i].path && string_is_equal(udev_pads[i].path, path))
if ( !string_is_empty(udev_pads[i].path)
&& string_is_equal(udev_pads[i].path, path))
{
input_autoconfigure_disconnect(i, udev_pads[i].ident);
udev_free_pad(i);