From c7ffcc9a9f224b71dc86347c8e1f7f52074d9980 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 18 Mar 2020 14:46:15 +0100 Subject: Add missing va_start/va_end Needed even though we don't iterate the list --- libcrystfel/src/utils.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/utils.c b/libcrystfel/src/utils.c index afbcbf78..1da0dfca 100644 --- a/libcrystfel/src/utils.c +++ b/libcrystfel/src/utils.c @@ -286,7 +286,9 @@ void STATUS(const char *format, ...) { va_list args; char tmp[1024]; + va_start(args, format); vsnprintf(tmp, 1024, format, args); + va_end(args); log_msg_func(LOG_MSG_STATUS, tmp, log_msg_vp); } @@ -295,7 +297,9 @@ void ERROR(const char *format, ...) { va_list args; char tmp[1024]; + va_start(args, format); vsnprintf(tmp, 1024, format, args); + va_end(args); log_msg_func(LOG_MSG_ERROR, tmp, log_msg_vp); } -- cgit v1.2.3