Removed unnecessary NULL check.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 29 Oct 2014 22:41:01 +0100
changeset 9204b331795924d3
parent 9203 874b59c43a3f
child 9205 5302aee2916a
Removed unnecessary NULL check.
src/SDL_hints.c
     1.1 --- a/src/SDL_hints.c	Wed Oct 29 20:35:21 2014 +0100
     1.2 +++ b/src/SDL_hints.c	Wed Oct 29 22:41:01 2014 +0100
     1.3 @@ -154,11 +154,7 @@
     1.4          hint = (SDL_Hint *)SDL_malloc(sizeof(*hint));
     1.5          if (!hint) {
     1.6              SDL_OutOfMemory();
     1.7 -            if(entry)
     1.8 -            {
     1.9 -              SDL_free(entry);
    1.10 -              entry = NULL;
    1.11 -            }
    1.12 +            SDL_free(entry);
    1.13              return;
    1.14          }
    1.15          hint->name = SDL_strdup(name);