Browse Source

SDL_SetHintWithPriority: Allow setting NULL hints.

Fixes #5120.
Ryan C. Gordon 2 years ago
parent
commit
55a07d91fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/SDL_hints.c

+ 1 - 1
src/SDL_hints.c

@@ -52,7 +52,7 @@ SDL_SetHintWithPriority(const char *name, const char *value,
     SDL_Hint *hint;
     SDL_HintWatch *entry;
 
-    if (!name || !value) {
+    if (!name) {
         return SDL_FALSE;
     }