mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Prevent 'explicit NULL dereferenced'
This commit is contained in:
parent
8b4893965f
commit
7c83071b01
@ -379,8 +379,9 @@ static bool load_content_from_compressed_archive(
|
||||
RARCH_LOG("Compressed file in case of need_fullpath."
|
||||
" Now extracting to temporary directory.\n");
|
||||
|
||||
strlcpy(new_basedir, content_ctx->directory_cache,
|
||||
sizeof(new_basedir));
|
||||
if (!string_is_empty(content_ctx->directory_cache))
|
||||
strlcpy(new_basedir, content_ctx->directory_cache,
|
||||
sizeof(new_basedir));
|
||||
|
||||
if (string_is_empty(new_basedir) || !path_is_directory(new_basedir))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user