diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-01-20 17:14:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-01-20 17:14:52 +0000 |
commit | 657105413a1c7293de7ad5090c38f1069ddc6546 (patch) | |
tree | 38cc197d4739100371c086cfe8219c7982fce332 /cpukit | |
parent | 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-657105413a1c7293de7ad5090c38f1069ddc6546.tar.bz2 |
2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 1
* libmisc/shell/fts.c:
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libmisc/shell/fts.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 2cbe894341..acdf521fde 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com> + Coverity Id 1 + * libmisc/shell/fts.c: + +2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com> + Coverity Id 7 Coverity Id 8 * libblock/src/bdpart.c: Verify libblock is really set after diff --git a/cpukit/libmisc/shell/fts.c b/cpukit/libmisc/shell/fts.c index 652258c63a..f7a805fc34 100644 --- a/cpukit/libmisc/shell/fts.c +++ b/cpukit/libmisc/shell/fts.c @@ -772,8 +772,10 @@ mem1: saved_errno = errno; if (nlinks) { p->fts_info = FTS_NS; p->fts_errno = cderrno; - } else + } /* else p->fts_info = FTS_NSOK; + */ + /* Coverity Scan Id 1 says above is dead code */ p->fts_accpath = cur->fts_accpath; } else if (nlinks == 0 #ifdef DT_DIR |