]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Value stored to 'i' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 11:01:45 +0000 (06:01 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 11:01:45 +0000 (06:01 -0500)
Found by Clang Static Analyzer.

SVN-Revision: 1627

tar/getdate.c

index 6ed08b86355ada21a11385f7e9b132876a5f8b55..ffaa679ba1a33e25602f3014e87f9bd11f12a56f 100644 (file)
@@ -825,7 +825,7 @@ nexttoken(char **in, time_t *value)
                                }
                                src++;
                        }
-                       buff[i++] = '\0';
+                       buff[i] = '\0';
 
                        /*
                         * Find the first match.  If the word can be