mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Fix menu_search_callback.
str can be empty and non-NULL.
This commit is contained in:
parent
f7a5853154
commit
fde4532a33
@ -1727,7 +1727,7 @@ static void menu_search_callback(void *userdata, const char *str)
|
||||
{
|
||||
rgui_handle_t *rgui = (rgui_handle_t*)userdata;
|
||||
|
||||
if (str)
|
||||
if (str && *str)
|
||||
file_list_search(rgui->selection_buf, str, &rgui->selection_ptr);
|
||||
rgui->keyboard.display = false;
|
||||
rgui->keyboard.label = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user