[RTEMS Project] #4339: main_cp.c: Unused value error spotted by Coverity
RTEMS trac
trac at rtems.org
Fri Mar 12 16:29:11 UTC 2021
#4339: main_cp.c: Unused value error spotted by Coverity
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: lib | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1255344: Unused value in copy().
{{{
315 case FTS_DC: /* Warn, continue. */
316 warnx("%s: directory causes a cycle",
curr->fts_path);
CID 1255344 (#5 of 5): Unused value (UNUSED_VALUE)assigned_value:
Assigning value from rval to badcp here, but that stored value is
overwritten before it can be used.
317 badcp = rval = 1;
318 continue;
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4339>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list