[PATCH 14/14] Remove leftovers from the vsnprintf check in malloc_vsnprintf

Mike Hommey mh+jemalloc at glandium.org
Thu Apr 19 04:03:59 PDT 2012


From: Mike Hommey <mh at glandium.org>

Commit 4eeb52f removed vsnprintf validation, but left a now unused va_copy.
It so happens that MSVC doesn't support va_copy.
---
 src/util.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/util.c b/src/util.c
index 2f1c8f0..e31644d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -286,7 +286,6 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
 	int ret;
 	size_t i;
 	const char *f;
-	va_list tap;
 
 #define	APPEND_C(c) do {						\
 	if (i < size)							\
@@ -357,9 +356,6 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
 	}								\
 } while (0)
 
-	if (config_debug)
-		va_copy(tap, ap);
-
 	i = 0;
 	f = format;
 	while (true) {
-- 
1.7.10




More information about the jemalloc-discuss mailing list