This commit is contained in:
twinaphex 2015-10-19 06:23:32 +02:00
parent 0feca47ec5
commit fe21aa49b4

View File

@ -101,20 +101,14 @@ const char* config_get_menu_driver_options(void)
for (i = 0; menu_driver_find_handle(i); i++) for (i = 0; menu_driver_find_handle(i); i++)
{ {
const char *opt = menu_driver_find_ident(i); const char *opt = menu_driver_find_ident(i);
options_len += strlen(opt) + 1; options_len += strlen(opt) + 1;
string_list_append(options_l, opt, attr); string_list_append(options_l, opt, attr);
} }
options = (char*)calloc(options_len, sizeof(char)); options = (char*)calloc(options_len, sizeof(char));
if (!options) if (options)
{ string_list_join_concat(options, options_len, options_l, "|");
string_list_free(options_l);
options_l = NULL;
return NULL;
}
string_list_join_concat(options, options_len, options_l, "|");
string_list_free(options_l); string_list_free(options_l);
options_l = NULL; options_l = NULL;