Fix va_list processing in test_note()

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3704)
This commit is contained in:
Richard Levitte 2017-06-17 09:54:54 +02:00
parent 93a8b3ba79
commit 7b4d323092

View file

@ -137,11 +137,13 @@ void test_error(const char *file, int line, const char *desc, ...)
void test_note(const char *fmt, ...)
{
va_list ap;
if (fmt != NULL) {
va_list ap;
test_printf_stderr("%*s# ", subtest_level(), "");
va_start(ap, fmt);
test_vprintf_stderr(fmt, ap);
va_end(ap);
test_printf_stderr("\n");
}
test_flush_stderr();