mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 21:47:44 +00:00
Removed unnecessary NULL check.
This commit is contained in:
@@ -154,11 +154,7 @@ SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *userdata)
|
||||
hint = (SDL_Hint *)SDL_malloc(sizeof(*hint));
|
||||
if (!hint) {
|
||||
SDL_OutOfMemory();
|
||||
if(entry)
|
||||
{
|
||||
SDL_free(entry);
|
||||
entry = NULL;
|
||||
}
|
||||
return;
|
||||
}
|
||||
hint->name = SDL_strdup(name);
|
||||
|
||||
Reference in New Issue
Block a user