mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Clean up this thing
This commit is contained in:
parent
7f3e63a18d
commit
be4e0aee1f
@ -769,14 +769,10 @@ void config_set_string(config_file_t *conf, const char *key, const char *val)
|
||||
return;
|
||||
}
|
||||
|
||||
entry = (struct config_entry_list*)calloc(1, sizeof(*entry));
|
||||
if (!val) return;
|
||||
|
||||
if (!entry || !val)
|
||||
{
|
||||
if (entry)
|
||||
free(entry);
|
||||
return;
|
||||
}
|
||||
entry = (struct config_entry_list*)calloc(1, sizeof(*entry));
|
||||
if (!entry) return;
|
||||
|
||||
entry->key = strdup(key);
|
||||
entry->value = strdup(val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user