Skip to content

Commit

Permalink
Christoph Mallon: Simplify assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 29, 2013
1 parent 67c1016 commit 9e23d17
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/SDL_hints.c
Expand Up @@ -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;
Expand Down

0 comments on commit 9e23d17

Please sign in to comment.