menu_cbs_deferred_push.c - Fix 'array compared against 0'
This commit is contained in:
parent
f1160f19b3
commit
d8b3597455
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue