used the wrong va_list there... why didn't gcc warn about this being uninitialized...

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-14 11:54:06 +02:00
parent 579ac3dd5d
commit 4dad7c7d50

View file

@ -39,14 +39,12 @@ int levelcolor[] = {
void vprintmsg(int level, const char *name, size_t line, char *errtype, const char *msg, va_list ap)
{
va_list va;
#ifndef WIN32
fprintf (stderr, "\033[0;%dm%s:%d \033[0;%dm%s: \033[0m", CON_CYAN, name, (int)line, levelcolor[level], errtype);
#else
fprintf (stderr, "%s:%d %s: ", name, line, errtype);
#endif
vfprintf(stderr, msg, va);
vfprintf(stderr, msg, ap);
fprintf (stderr, "\n");
}