aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2012-04-20 08:38:38 +0200
committerJason Evans <jasone@canonware.com>2012-04-21 21:29:12 -0700
commit08e2221e99ef96277331f43e87d3f3ff770d27a7 (patch)
tree481a5921acb8c18e00e25172277a8cdfcdde5a62 /src/util.c
parenta19e87fbad020e8dd3d26682032929e8e5ae71c1 (diff)
downloadjemalloc-08e2221e99ef96277331f43e87d3f3ff770d27a7.tar.gz
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.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/util.c b/src/util.c
index ee9efdf..2042329 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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) {