Task #91303 - fixed.err
back to task #91303download
Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/lesspipe.sh:125:19: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
# 123| if [ -n "$conv" ]; then
# 124| env=`echo $LANG | cut -d. -f2`
# 125|-> if [ -n "$env" -a "$conv" != "$env" ]; then
# 126| iconv -f $conv -t $env "$1"
# 127| exit $?
Error: COMPILER_WARNING (CWE-457):
less-679/decode.c: scope_hint: In function ‘cmd_decode’
less-679/decode.c:785:20: warning[-Wmaybe-uninitialized]: ‘mlen’ may be used uninitialized
# 785 | if (mlen >= match_len)
# | ^
less-679/decode.c:783:24: note: ‘mlen’ was declared here
# 783 | size_t mlen;
# | ^~~~
# 783| size_t mlen;
# 784| int taction = cmd_search(cmd, t->t_start, t->t_end, &tsp, &mlen);
# 785|-> if (mlen >= match_len)
# 786| {
# 787| match_len = mlen;