(input_driver.c) Cleanups in config_get_input_driver_options

This commit is contained in:
twinaphex 2015-01-30 07:45:14 +01:00
parent 3b7dac52ef
commit 0cc50ed4ea

View File

@ -116,6 +116,9 @@ const char* config_get_input_driver_options(void)
attr.i = 0;
if (!options_l)
return NULL;
for (i = 0; input_driver_find_handle(i); i++)
{
const char *opt = input_driver_find_ident(i);
@ -125,6 +128,13 @@ const char* config_get_input_driver_options(void)
options = (char*)calloc(options_len, sizeof(char));
if (!options)
{
string_list_free(options_l);
options_l = NULL;
return NULL;
}
string_list_join_concat(options, options_len, options_l, "|");
string_list_free(options_l);