Fix observed DEBUG build crash in assert handling

This is a second case of this problem. It didn't used to crash which
suggests vprintf used to check for NULL varargs itself.
This commit is contained in:
Scott Ludwig 2016-01-26 12:08:47 -08:00
parent 577ac5a9cc
commit 0d3183e58b

View File

@ -383,7 +383,11 @@ void DoRip(char *psz, va_list va)
{
printf("Assert:\n");
printf("File: %s, Line: %d\n", gpszRipFile, giRipLine);
vprintf(psz, va);
if (va == NULL) {
printf(psz);
} else {
vprintf(psz, va);
}
Break();
}