menu_cbs_deferred_push.c - Fix 'array compared against 0'

This commit is contained in:
twinaphex 2016-06-02 20:51:27 +02:00
parent f1160f19b3
commit d8b3597455
2 changed files with 3 additions and 2 deletions

View File

@ -596,7 +596,8 @@ static void *libusb_hid_init(void)
return hid;
error:
libusb_hid_free(hid);
if (hid)
libusb_hid_free(hid);
return NULL;
}

View File

@ -411,7 +411,7 @@ static int general_push(menu_displaylist_info_t *info,
}
else
{
if (system->valid_extensions)
if (!string_is_empty(system->valid_extensions))
strlcpy(info->exts, system->valid_extensions, sizeof(info->exts));
}
break;