Skip to content

Commit

Permalink
src/test: Fix missing parameter to nxt_log_alert() in nxt_base64_test()
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Andrew Clayton <[email protected]>
  • Loading branch information
ac000 committed Oct 26, 2024
1 parent ebd02c6 commit 2bd455b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/nxt_base64_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 2bd455b

Please sign in to comment.