Prevent 'explicit NULL dereferenced'

This commit is contained in:
twinaphex 2017-02-21 20:30:52 +01:00
parent 8b4893965f
commit 7c83071b01

View File

@ -379,6 +379,7 @@ static bool load_content_from_compressed_archive(
RARCH_LOG("Compressed file in case of need_fullpath."
" Now extracting to temporary directory.\n");
if (!string_is_empty(content_ctx->directory_cache))
strlcpy(new_basedir, content_ctx->directory_cache,
sizeof(new_basedir));