Christoph Mallon: Simplify assignment.
This commit is contained in:
1 parent
67c10169ee
commit
9e23d17869
1 file changed
+1
-5
+1
-5
@@ -75,11 +75,7 @@ SDL_SetHintWithPriority(const char *name, const char *value,
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user