summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbsd-compat/bsd-asprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-asprintf.c b/openbsd-compat/bsd-asprintf.c
index 3368195d4..db57acce9 100644
--- a/openbsd-compat/bsd-asprintf.c
+++ b/openbsd-compat/bsd-asprintf.c
@@ -47,6 +47,7 @@ vasprintf(char **str, const char *fmt, va_list ap)
47 char *string, *newstr; 47 char *string, *newstr;
48 size_t len; 48 size_t len;
49 49
50 va_start(ap);
50 VA_COPY(ap2, ap); 51 VA_COPY(ap2, ap);
51 if ((string = malloc(INIT_SZ)) == NULL) 52 if ((string = malloc(INIT_SZ)) == NULL)
52 goto fail; 53 goto fail;