Fixed SDL_SetError() by making NULL fmt a no-op, update test automation

This commit is contained in:
Andreas Schiffler 2011-07-17 20:59:34 -07:00
parent 73bd015b16
commit 9db859c159
2 changed files with 44 additions and 2 deletions

View file

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