SDL_SetHintWithPriority: Allow setting NULL hints.

Fixes #5120.
main
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
1 changed files with 1 additions and 1 deletions

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