Skip to content

Commit

Permalink
Remove unnnecessary null pointer check
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jan 12, 2025
1 parent 203c621 commit e30fcb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions disk_index_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

1 comment on commit e30fcb6

@elfring
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you like to avoid a typo in the patch subject?

Please sign in to comment.