Skip to content

Commit

Permalink
A hint with an empty string should be treated as the default value
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 21, 2017
1 parent eaab609 commit b3ac0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL_hints.c
Expand Up @@ -122,7 +122,7 @@ SDL_bool
SDL_GetHintBoolean(const char *name, SDL_bool default_value)
{
const char *hint = SDL_GetHint(name);
if (!hint) {
if (!hint || !*hint) {
return default_value;
}
if (*hint == '0' || SDL_strcasecmp(hint, "false") == 0) {
Expand Down

0 comments on commit b3ac0b6

Please sign in to comment.