From f6090c7e17b5a7801a32695b6b0b2e6959386881 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 6 Nov 2023 16:16:37 +0100 Subject: add missing call to `va_end()` for copied `va_list` The man page stdarg(3) states that each invocation of `va_copy()` must be matched by a corresponding invocation of `va_end()` in the same function. Signed-off-by: Max Signed-off-by: Lukas Fleischer --- src/strings.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/strings.c') diff --git a/src/strings.c b/src/strings.c index 45c9310..ed90bc7 100644 --- a/src/strings.c +++ b/src/strings.c @@ -85,6 +85,7 @@ int string_vcatf(struct string *sb, const char *format, va_list ap) ap2); } sb->len += n; + va_end(ap2); return n; } -- cgit v1.2.3-54-g00ecf