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) if(!rsx)
abort(); abort();
#endif #endif
/* Pleast older clang scan-build */
if (!buf)
buf = rsx->rs_buf;
} }
chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8, 0); 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 do
"${TPKG}" $* exe "${TEST_PKG}" "${TPKG}" $* exe "${TEST_PKG}"
# trap keyboard interrupt (control-c) # trap keyboard interrupt (control-c)