From 10071f8b5003977551427e4d65fd2b10b88399b4 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 26 Aug 2017 11:41:39 -0300 Subject: [PATCH] cppcheck: call va_end in _internal_error fix for: util/error_util.c:38: error: va_list 'va_args' was opened but not closed by va_end() This makes the code more copy-pastable, if nothing else --- util/error_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/error_util.c b/util/error_util.c index 778bbd52..e64162c7 100644 --- a/util/error_util.c +++ b/util/error_util.c @@ -34,6 +34,7 @@ _internal_error (const char *format, ...) fprintf (stderr, "Internal error: "); vfprintf (stderr, format, va_args); + va_end (va_args); exit (1); }