Fixed SDL_SetError() by making NULL fmt a no-op, update test automation
This commit is contained in:
parent
73bd015b16
commit
9db859c159
2 changed files with 44 additions and 2 deletions
|
@ -55,6 +55,9 @@ SDL_SetError(const char *fmt, ...)
|
|||
va_list ap;
|
||||
SDL_error *error;
|
||||
|
||||
/* Ignore call if invalid format pointer was passed */
|
||||
if (fmt == NULL) return;
|
||||
|
||||
/* Copy in the key, mark error as valid */
|
||||
error = SDL_GetErrBuf();
|
||||
error->error = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue