From: Andre Noll Date: Thu, 1 Jan 2015 17:32:36 +0000 (+0000) Subject: fd.c: Add missing va_end(). X-Git-Tag: v0.5.4~3^2~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=f5a180ad5456545b527fbf644e25309493f42434;ds=sidebyside fd.c: Add missing va_end(). This bug was introduced three years ago in commit 3e6bba77. Found by cppcheck. --- diff --git a/fd.c b/fd.c index 3ab5cad0..20dc07da 100644 --- a/fd.c +++ b/fd.c @@ -146,6 +146,7 @@ __printf_2_3 int write_va_buffer(int fd, const char *fmt, ...) va_start(ap, fmt); ret = xvasprintf(&msg, fmt, ap); + va_end(ap); ret = write_all(fd, msg, ret); free(msg); return ret;