From: Matthias Krüger Date: Fri, 3 Apr 2015 10:44:20 +0000 (+0200) Subject: main.c: missing va_end(ap). X-Git-Tag: xonotic-v0.8.1^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=77cfb2e8aee418e206467cf5a165e604337d970f;p=xonotic%2Fd0_blind_id.git main.c: missing va_end(ap). was (cppcheck): [main.c:73]: (error) va_list 'ap' was opened but not closed by va_end(). --- diff --git a/main.c b/main.c index 1fa088f..9995fd5 100644 --- a/main.c +++ b/main.c @@ -68,6 +68,7 @@ static void errx(int status, const char *format, ...) va_list ap; va_start(ap, format); vfprintf(stderr, format, ap); + va_end(ap); fputs("\n", stderr); exit(status); }