From d605ead4bc5dc96022a3f13bdbf05d2b63da3fd4 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 31 Dec 2014 14:41:43 +0100 Subject: Add missing va_end --- src/buffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buffer.c') diff --git a/src/buffer.c b/src/buffer.c index b508310..15a6d05 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -175,6 +175,8 @@ int cmark_strbuf_vprintf(cmark_strbuf *buf, const char *format, va_list ap) format, args ); + va_end(args); + if (len < 0) { free(buf->ptr); buf->ptr = cmark_strbuf__oom; -- cgit v1.2.3 From 0e38a3706039607fb276228648f726ca9e15f6f0 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 31 Dec 2014 16:24:14 +0100 Subject: Feature test for va_copy MSVC doesn't support va_copy. --- src/buffer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/buffer.c') diff --git a/src/buffer.c b/src/buffer.c index 15a6d05..87d817b 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5,6 +5,7 @@ #include #include +#include "config.h" #include "cmark_ctype.h" #include "buffer.h" -- cgit v1.2.3