Task #133321 - which-2.23-4.fc44/scan-results.err

back to task #133321
download
Error: SHELLCHECK_WARNING (CWE-156):
/etc/profile.d/which2.sh:5:26: warning[SC2046]: Quote this to prevent word splitting.
#    3|   
#    4|   if [ -r /proc/$$/exe ]; then
#    5|->     SHELLNAME=$(basename $(readlink /proc/$$/exe))
#    6|   else
#    7|       SHELLNAME="unknown"

Error: COMPILER_WARNING (CWE-704):
which-2.23/tilde.c: scope_hint: In function ‘tilde_expand’
which-2.23/tilde.c:192:10: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  192 |   result = strchr(string, '~');
#      |          ^
#  190|   
#  191|     result_index = result_size = 0;
#  192|->   result = strchr(string, '~');
#  193|     if (result)
#  194|       result = (char *) xmalloc(result_size = (strlen(string) + 16));

Error: COMPILER_WARNING (CWE-704):
which-2.23/tilde.c:192:10: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  190|   
#  191|     result_index = result_size = 0;
#  192|->   result = strchr(string, '~');
#  193|     if (result)
#  194|       result = (char *) xmalloc(result_size = (strlen(string) + 16));