From 69f0c4849c4d8ddad0829c8618d7d777f738e6d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 3 Apr 2015 12:44:20 +0200 Subject: [PATCH 1/3] main.c: missing va_end(ap). was (cppcheck): [main.c:73]: (error) va_list 'ap' was opened but not closed by va_end(). --- main.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.0