mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Use SDL_strdup instead of strdup
This commit is contained in:

committed by
Sam Lantinga

parent
73927b0948
commit
62ed6f453f
@@ -234,7 +234,7 @@ static void *GetSelectionData(SDL_VideoDevice *_this, Atom selection_type, size_
|
||||
}
|
||||
|
||||
if (nullterminate && data == NULL) {
|
||||
data = strdup("");
|
||||
data = SDL_strdup("");
|
||||
}
|
||||
|
||||
return data;
|
||||
|
Reference in New Issue
Block a user