summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-10-26 03:34:43 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-10-29 01:36:20 +0000
commit9f6f48661c7fec42bb9ebeeec4d7828e37b786bd (patch)
treebfb7fa8e9bad2f686bf6a33eae36892facc69ad3
parent85f21b7cf30bc5bf0cc39aa9a7ebb2a25cd27a78 (diff)
downloadunit-9f6f48661c7fec42bb9ebeeec4d7828e37b786bd.tar.gz
unit-9f6f48661c7fec42bb9ebeeec4d7828e37b786bd.tar.bz2
src/test: Fix missing parameter to nxt_log_alert() in nxt_base64_test()
nxt_log_alert() was missing the nxt_str_t parameter as required by the %V format specifier. This was found with the Unit clang-ast plugin. Fixes: 7bf625394 ("Custom implementation of Base64 decoding function.") Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--src/test/nxt_base64_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/nxt_base64_test.c b/src/test/nxt_base64_test.c
index 13a772b6..579cbf95 100644
--- a/src/test/nxt_base64_test.c
+++ b/src/test/nxt_base64_test.c
@@ -87,7 +87,8 @@ nxt_base64_test(nxt_thread_t *thr)
ret = nxt_base64_decode(buf, tests[i].enc.start, tests[i].enc.length);
if (!nxt_str_eq(&tests[i].dec, buf, (size_t) ret)) {
- nxt_log_alert(thr->log, "nxt_base64_decode() test \"%V\" failed");
+ nxt_log_alert(thr->log, "nxt_base64_decode() test \"%V\" failed",
+ &tests[i].enc);
return NXT_ERROR;
}
}