src/SDL_error.c
changeset 5766 8cc2ae74cd83
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
     1.1 --- a/src/SDL_error.c	Sun Jul 17 19:19:35 2011 +0300
     1.2 +++ b/src/SDL_error.c	Sun Jul 17 20:59:34 2011 -0700
     1.3 @@ -55,6 +55,9 @@
     1.4      va_list ap;
     1.5      SDL_error *error;
     1.6  
     1.7 +    /* Ignore call if invalid format pointer was passed */
     1.8 +    if (fmt == NULL) return;
     1.9 +    
    1.10      /* Copy in the key, mark error as valid */
    1.11      error = SDL_GetErrBuf();
    1.12      error->error = 1;