Remove unnnecessary null pointer check

This commit is contained in:
LibretroAdmin 2025-01-12 18:45:14 +01:00
parent 203c6218e4
commit e30fcb6da6

View File

@ -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)
free(*pCtx->current_entry_str_val);
free(*pCtx->current_entry_str_val);
*pCtx->current_entry_str_val = strdup(pValue);
}