From 2cbb7cb0c814802acb589928ffa284b3ac0b86e3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 3 Jan 2016 18:38:41 +0900 Subject: [PATCH] Remove a redundant va_start/va_end pair. Found while checking how many places use va_copy. --- libs/util/quakeio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libs/util/quakeio.c b/libs/util/quakeio.c index 08e675e6e..f8e62df46 100644 --- a/libs/util/quakeio.c +++ b/libs/util/quakeio.c @@ -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);