SDL_SetHintWithPriority: Allow setting NULL hints. Fixes #5120.
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;
}