diff options
author | Mike Hommey <mh@glandium.org> | 2012-04-20 06:38:38 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2012-04-22 04:29:12 (GMT) |
commit | 08e2221e99ef96277331f43e87d3f3ff770d27a7 (patch) | |
tree | 481a5921acb8c18e00e25172277a8cdfcdde5a62 | |
parent | a19e87fbad020e8dd3d26682032929e8e5ae71c1 (diff) | |
download | jemalloc-08e2221e99ef96277331f43e87d3f3ff770d27a7.zip jemalloc-08e2221e99ef96277331f43e87d3f3ff770d27a7.tar.gz jemalloc-08e2221e99ef96277331f43e87d3f3ff770d27a7.tar.bz2 |
Remove leftovers from the vsnprintf check in malloc_vsnprintf
Commit 4eeb52f removed vsnprintf validation, but left a now unused va_copy.
It so happens that MSVC doesn't support va_copy.
-rw-r--r-- | src/util.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -288,7 +288,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) \ @@ -359,9 +358,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) { |