mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-09 04:11:37 -06:00
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:
parent
577ac5a9cc
commit
0d3183e58b
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user