[openssl-commits] [openssl] master update
Richard Levitte
levitte at openssl.org
Sat Jun 17 13:52:46 UTC 2017
The branch master has been updated
via 7b4d323092bd44bbca8f8cd96709dff89277f930 (commit)
from 93a8b3ba793c769a3634e56642dac55a8d44023f (commit)
- Log -----------------------------------------------------------------
commit 7b4d323092bd44bbca8f8cd96709dff89277f930
Author: Richard Levitte <levitte at openssl.org>
Date: Sat Jun 17 09:54:54 2017 +0200
Fix va_list processing in test_note()
Reviewed-by: Andy Polyakov <appro at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3704)
-----------------------------------------------------------------------
Summary of changes:
test/testutil/tests.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/testutil/tests.c b/test/testutil/tests.c
index 3f66b3e..7a92388 100644
--- a/test/testutil/tests.c
+++ b/test/testutil/tests.c
@@ -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();
More information about the openssl-commits
mailing list