Commit 55a07d91faca40caf7cac10840ccd5e2f0521f0c

Ryan C. Gordon 2022-06-06T09:30:43

SDL_SetHintWithPriority: Allow setting NULL hints. Fixes #5120.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/SDL_hints.c b/src/SDL_hints.c
index 0005f49..35eff7a 100644
--- a/src/SDL_hints.c
+++ b/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;
     }