mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Be more careful with strdup
This commit is contained in:
parent
a91e00026b
commit
711c4116e0
@ -1011,7 +1011,9 @@ bool task_push_content_load_default(
|
||||
if (settings)
|
||||
{
|
||||
content_ctx.history_list_enable = settings->history_list_enable;
|
||||
content_ctx.directory_system = strdup(settings->directory.system);
|
||||
|
||||
if (!string_is_empty(settings->directory.system))
|
||||
content_ctx.directory_system = strdup(settings->directory.system);
|
||||
}
|
||||
|
||||
/* First we determine if we are loading from a menu */
|
||||
|
Loading…
x
Reference in New Issue
Block a user