From 9eb753ea8e6b2c65f424b82dbde5d1edbfabe6f9 Mon Sep 17 00:00:00 2001 From: cperciva Date: Mon, 21 May 2007 04:22:38 +0000 Subject: 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) --- lib/libarchive/archive_write_disk.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') 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 -- cgit v1.1