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:
parent
93a8b3ba79
commit
7b4d323092
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue