mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-13 22:08:34 +00:00
Cleanup location_driver.c
This commit is contained in:
parent
f3fed818ac
commit
850716ecac
@ -82,6 +82,9 @@ const char* config_get_location_driver_options(void)
|
|||||||
|
|
||||||
attr.i = 0;
|
attr.i = 0;
|
||||||
|
|
||||||
|
if (!options_l)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
for (i = 0; location_driver_find_handle(i); i++)
|
for (i = 0; location_driver_find_handle(i); i++)
|
||||||
{
|
{
|
||||||
const char *opt = location_driver_find_ident(i);
|
const char *opt = location_driver_find_ident(i);
|
||||||
@ -91,6 +94,13 @@ const char* config_get_location_driver_options(void)
|
|||||||
|
|
||||||
options = (char*)calloc(options_len, sizeof(char));
|
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_join_concat(options, options_len, options_l, "|");
|
||||||
|
|
||||||
string_list_free(options_l);
|
string_list_free(options_l);
|
||||||
|
Loading…
Reference in New Issue
Block a user