Com_Error always calls va_end before calling longjmp

va_end is essentially a no-op on currently targeted platforms
This commit is contained in:
myT 2024-01-13 23:22:47 +01:00
parent ebbaa15c06
commit 599f8ea12f

View file

@ -245,8 +245,8 @@ void QDECL Com_Error( int level, PRINTF_FORMAT_STRING const char* fmt, ... )
va_list argptr;
va_start( argptr, fmt );
Q_vsnprintf( msg, sizeof(msg), fmt, argptr );
va_end( argptr );
Com_ErrorExt( level, EXT_ERRMOD_ENGINE, qtrue, "%s", msg );
va_end(argptr);
}