提交 7b4d3230 编写于 作者: R Richard Levitte

Fix va_list processing in test_note()

Reviewed-by: NAndy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3704)
上级 93a8b3ba
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册