]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Value stored to 'r' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 19:50:29 +0000 (14:50 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 19:50:29 +0000 (14:50 -0500)
Found by Clang Static Analyzer.

SVN-Revision: 1605

libarchive/archive_write_disk.c

index b824cc9e7da930c742b03e86cc437d3f9df65c61..b0dbe3b4ad43bfc280c1dabc36841384d287dcb8 100644 (file)
@@ -1694,8 +1694,6 @@ create_dir(struct archive_write_disk *a, char *path)
        mode_t mode_final, mode;
        int r;
 
-       r = ARCHIVE_OK;
-
        /* Check for special names and just skip them. */
        slash = strrchr(path, '/');
        if (slash == NULL)