src/SDL_hints.c
changeset 6389 43a190ad60a7
parent 6138 4c64952a58fb
child 6885 700f1b25f77f
--- a/src/SDL_hints.c	Wed Aug 08 13:44:58 2012 -0400
+++ b/src/SDL_hints.c	Thu Aug 09 14:14:41 2012 -0400
@@ -57,7 +57,7 @@
                         SDL_HintPriority priority)
 {
     const char *env;
-    SDL_Hint *prev, *hint;
+    SDL_Hint *hint;
 
     if (!name || !value) {
         return SDL_FALSE;
@@ -68,8 +68,7 @@
         return SDL_FALSE;
     }
 
-    prev = NULL;
-    for (hint = SDL_hints; hint; prev = hint, hint = hint->next) {
+    for (hint = SDL_hints; hint; hint = hint->next) {
         if (SDL_strcmp(name, hint->name) == 0) {
             if (priority < hint->priority) {
                 return SDL_FALSE;