SDL_SetHintWithPriority: Allow setting NULL hints.

Fixes #5120.
This commit is contained in:
Ryan C. Gordon 2022-06-06 09:30:43 -04:00
parent a236bf4f25
commit 55a07d91fa
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -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;
}