(XMB) Fix a segfault during menu toggle

This commit is contained in:
Jean-André Santoni 2015-01-30 04:41:08 +01:00
parent 85e29125de
commit 3d3370b725

View File

@ -2902,7 +2902,7 @@ void setting_data_get_label(void *data, char *type_str,
size_t type_str_size, unsigned *w, unsigned type,
const char *menu_label, const char *label, unsigned idx)
{
file_list_t *list = (file_list_t*)data;
file_list_t *list = (file_list_t*)data;
rarch_setting_t *setting_data = NULL;
rarch_setting_t *setting = NULL;
@ -2917,6 +2917,9 @@ void setting_data_get_label(void *data, char *type_str,
label, idx)) == 0)
return;
if (!label)
return;
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
if ((!strcmp(menu_label, "Shader Options") ||
!strcmp(menu_label, "video_shader_parameters") ||