Fix menu_search_callback.

str can be empty and non-NULL.
This commit is contained in:
Themaister 2013-12-10 19:46:50 +01:00
parent f7a5853154
commit fde4532a33

View File

@ -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;