#4340 closed defect (fixed)

print-ls.c: Unused value error spotted by Coverity

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: lib Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

CID 1255346: Unused value in rtems_shell_ls_printacol

327                if (col >= numcols) {
   CID 1255346 (#1 of 1): Unused value (UNUSED_VALUE)assigned_value: Assigning value from col to chcnt here, but that stored value is overwritten before it can be used.
328                        chcnt = col = 0;
329                        (void)putchar('\n');
330                }
   value_overwrite: Overwriting previous write to chcnt with value from printaname(globals, p, dp->s_inode, ((globals->f_humanize && 0) ? dp->s_size : dp->s_block)).
331                chcnt = printaname(globals, p, dp->s_inode,

Change History (1)

comment:1 Changed on 04/08/21 at 23:02:09 by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In 0b23660/rtems:

print-ls.c: Unused value (CID #1255346)

CID 1255346: Unused value in rtems_shell_ls_printacol().

Closes #4340

Note: See TracTickets for help on using tickets.