From e30fcb6da667628d3d60161e4a1f0471d78b6d50 Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Sun, 12 Jan 2025 18:45:14 +0100 Subject: [PATCH] Remove unnnecessary null pointer check --- disk_index_file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/disk_index_file.c b/disk_index_file.c index 9f49606ca89..00ec7570ef8 100644 --- a/disk_index_file.c +++ b/disk_index_file.c @@ -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); }