mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
Fixed crash with SDL_SetError(NULL)
This commit is contained in:
parent
0ddd252fdd
commit
40538446d9
@ -1468,6 +1468,9 @@ SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt,
|
||||
size_t left = maxlen;
|
||||
char *textstart = text;
|
||||
|
||||
if (!fmt) {
|
||||
fmt = "";
|
||||
}
|
||||
while (*fmt) {
|
||||
if (*fmt == '%') {
|
||||
SDL_bool done = SDL_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user