mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-15 07:01:42 +03:00
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.
This commit is contained in:
parent
a19e87fbad
commit
08e2221e99
1 changed files with 0 additions and 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue