Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Removed unnecessary NULL check.
- Loading branch information
Showing
with
1 addition
and
5 deletions.
-
+1
−5
src/SDL_hints.c
|
@@ -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; |
|
|
} |
|
|
SDL_free(entry); |
|
|
return; |
|
|
} |
|
|
hint->name = SDL_strdup(name); |
|
|