Christoph Mallon: Simplify assignment.
authorSam Lantinga <slouken@libsdl.org>
Thu, 29 Aug 2013 08:26:24 -0700
changeset 7716 be4cda94bce2
parent 7715 24f652e130fa
child 7717 0f48be750bba
Christoph Mallon: Simplify assignment.
src/SDL_hints.c
--- 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;