src/SDL_hints.c
changeset 7716 be4cda94bce2
parent 7432 58908b180ebd
child 7719 31b5f9ff36ca
--- a/src/SDL_hints.c	Thu Aug 29 08:25:54 2013 -0700
+++ b/src/SDL_hints.c	Thu Aug 29 08:26:24 2013 -0700
@@ -75,11 +75,7 @@
                 if (hint->value) {
                     SDL_free(hint->value);
                 }
-                if (value) {
-                    hint->value = SDL_strdup(value);
-                } else {
-                    hint->value = NULL;
-                }
+                hint->value = value ? SDL_strdup(value) : NULL;
             }
             hint->priority = priority;
             return SDL_TRUE;