[PATCH 1/7] Add a missing va_end() call

Ondřej Lysoněk olysonek at redhat.com
Mon Aug 13 13:39:42 BST 2018


Signed-off-by: Ondřej Lysoněk <olysonek at redhat.com>
---
 src/common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/common.c b/src/common.c
index 86d806c..48f68f9 100644
--- a/src/common.c
+++ b/src/common.c
@@ -74,6 +74,7 @@ void do_log(const char *line, ...)
 	  (ptr->tm_year)+1900, (ptr->tm_mon)+1, ptr->tm_mday,
 	  ptr->tm_hour, ptr->tm_min, ptr->tm_sec);
   vfprintf(logfile, line, ap);
+  va_end(ap);
   fprintf(logfile, "\n");
   fclose(logfile);
 #else
-- 
2.14.4




More information about the minicom-devel mailing list