From: David Bremner Date: Sat, 26 Aug 2017 14:41:39 +0000 (-0300) Subject: cppcheck: call va_end in _internal_error X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=10071f8b5003977551427e4d65fd2b10b88399b4;p=notmuch.git 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 --- 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); }