(Menu) Buildfix

This commit is contained in:
twinaphex 2015-06-07 15:49:58 +02:00
parent 38ce8ffcef
commit ce79c4a4a0
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ menu_ctx_driver_t menu_ctx_null = {
NULL, // list_delete
NULL, // list_clear
NULL, // list_cache
NULL, // list_get_size
NULL, // list_set_selection
NULL,
"null",

View File

@ -264,7 +264,7 @@ size_t menu_driver_list_get_size(menu_list_type_t type)
menu_handle_t *menu = menu_driver_get_ptr();
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
if (driver->list_get_size)
if (driver && driver->list_get_size)
return driver->list_get_size(menu, type);
return 0;
}