Remove a redundant va_start/va_end pair.

Found while checking how many places use va_copy.
This commit is contained in:
Bill Currie 2016-01-03 18:38:41 +09:00
parent a54f3d9035
commit 2cbb7cb0c8

View file

@ -383,9 +383,7 @@ Qprintf (QFile *file, const char *fmt, ...)
if (!buf)
buf = dstring_new ();
va_start (args, fmt);
dvsprintf (buf, fmt, args);
va_end (args);
ret = strlen (buf->str);
if (ret > 0)
ret = gzwrite (file->gzfile, buf, (unsigned) ret);