Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit cfb5200

Browse files
committed
src/test: Fix missing parameter to nxt_log_alert() in nxt_base64_test()
It was missing the nxt_str_t parameter as required by the %V format specifier. This was found with the Unit clang-ast plugin. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
1 parent ebd02c6 commit cfb5200

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/nxt_base64_test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ nxt_base64_test(nxt_thread_t *thr)
8787
ret = nxt_base64_decode(buf, tests[i].enc.start, tests[i].enc.length);
8888

8989
if (!nxt_str_eq(&tests[i].dec, buf, (size_t) ret)) {
90-
nxt_log_alert(thr->log, "nxt_base64_decode() test \"%V\" failed");
90+
nxt_log_alert(thr->log, "nxt_base64_decode() test \"%V\" failed",
91+
&tests[i].enc);
9192
return NXT_ERROR;
9293
}
9394
}

0 commit comments

Comments
 (0)