src/SDL_hints.c
changeset 6389 43a190ad60a7
parent 6138 4c64952a58fb
child 6885 700f1b25f77f
     1.1 --- a/src/SDL_hints.c	Wed Aug 08 13:44:58 2012 -0400
     1.2 +++ b/src/SDL_hints.c	Thu Aug 09 14:14:41 2012 -0400
     1.3 @@ -57,7 +57,7 @@
     1.4                          SDL_HintPriority priority)
     1.5  {
     1.6      const char *env;
     1.7 -    SDL_Hint *prev, *hint;
     1.8 +    SDL_Hint *hint;
     1.9  
    1.10      if (!name || !value) {
    1.11          return SDL_FALSE;
    1.12 @@ -68,8 +68,7 @@
    1.13          return SDL_FALSE;
    1.14      }
    1.15  
    1.16 -    prev = NULL;
    1.17 -    for (hint = SDL_hints; hint; prev = hint, hint = hint->next) {
    1.18 +    for (hint = SDL_hints; hint; hint = hint->next) {
    1.19          if (SDL_strcmp(name, hint->name) == 0) {
    1.20              if (priority < hint->priority) {
    1.21                  return SDL_FALSE;