diff options
author | cperciva <cperciva@FreeBSD.org> | 2007-05-21 04:22:38 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2007-05-21 04:22:38 +0000 |
commit | 9eb753ea8e6b2c65f424b82dbde5d1edbfabe6f9 (patch) | |
tree | d6ef106d16f05ddf424d44dece060a2d38f108ea /lib | |
parent | 569ef4c46b1df51a32e0fdcd19df783666a20e1f (diff) | |
download | FreeBSD-src-9eb753ea8e6b2c65f424b82dbde5d1edbfabe6f9.zip FreeBSD-src-9eb753ea8e6b2c65f424b82dbde5d1edbfabe6f9.tar.gz |
Remove pointless code: Don't assign a value to a variable when we're
going to overwrite it with a new value a few lines later.
Visual inspection of the surrounding code indicates that the code does
what it's supposed to do; i.e., the pointless code wasn't supposed to
be doing something other than what it was doing.
CID: 3323
Found by: Coverity Prevent(tm)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/archive_write_disk.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libarchive/archive_write_disk.c b/lib/libarchive/archive_write_disk.c index e137b6d..86426f1 100644 --- a/lib/libarchive/archive_write_disk.c +++ b/lib/libarchive/archive_write_disk.c @@ -1267,7 +1267,6 @@ create_dir(struct archive_write_disk *a, char *path) /* Check for special names and just skip them. */ slash = strrchr(path, '/'); - base = strrchr(path, '/'); if (slash == NULL) base = path; else |