mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Remove unnnecessary null pointer check
This commit is contained in:
parent
203c6218e4
commit
e30fcb6da6
@ -82,8 +82,7 @@ static bool DCifJSONStringHandler(void* context, const char *pValue, size_t leng
|
|||||||
|
|
||||||
if (pCtx->current_entry_str_val && length && !string_is_empty(pValue))
|
if (pCtx->current_entry_str_val && length && !string_is_empty(pValue))
|
||||||
{
|
{
|
||||||
if (*pCtx->current_entry_str_val)
|
free(*pCtx->current_entry_str_val);
|
||||||
free(*pCtx->current_entry_str_val);
|
|
||||||
|
|
||||||
*pCtx->current_entry_str_val = strdup(pValue);
|
*pCtx->current_entry_str_val = strdup(pValue);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user