Reassure clang static analyzer that all is OK

This commit is contained in:
Willem Toorop 2019-01-23 10:29:20 +01:00
parent 79fbef07d8
commit ac379787a2
2 changed files with 5 additions and 1 deletions

View File

@ -171,6 +171,9 @@ _rs_init(u_char *buf, size_t n)
if(!rsx)
abort();
#endif
/* Pleast older clang scan-build */
if (!buf)
buf = rsx->rs_buf;
}
chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8, 0);

View File

@ -11,7 +11,8 @@ control_c()
}
for TEST_PKG in ${SRCDIR}/*.tpkg
# for TEST_PKG in ${SRCDIR}/*.tpkg
for TEST_PKG in ${SRCDIR}/400-static-analysis.tpkg
do
"${TPKG}" $* exe "${TEST_PKG}"
# trap keyboard interrupt (control-c)