win32-dont print garbage in console when initializing

This commit is contained in:
zeromus 2013-02-06 21:59:08 +00:00
parent b16f5e8c07
commit 37ebeb0682
1 changed files with 4 additions and 1 deletions

View File

@ -135,5 +135,8 @@ void CloseConsole() {
void printlog(const char *fmt, ...)
{
printf(fmt);
va_list args;
va_start (args, fmt);
vprintf (fmt, args);
va_end (args);
}