]> diplodocus.org Git - nmh/commitdiff
content_error(): Add missing va_end(3).
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 9 Sep 2017 10:13:11 +0000 (11:13 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 9 Sep 2017 10:13:11 +0000 (11:13 +0100)
A va_start(3) without a matching va_end() is undefined behaviour.

uip/mhmisc.c

index dc33bc0..380d7ea 100644 (file)
@@ -240,6 +240,8 @@ content_error (char *what, CT ct, char *fmt, ...)
     } else {
        inform("%s", buffer);
     }
+
+    va_end(arglist);
 }