]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
- Value stored to 'data' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 07:15:09 +0000 (02:15 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 07:15:09 +0000 (02:15 -0500)
- Value stored to 'data_length' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1620

libarchive/archive_read_support_format_iso9660.c

index 22a97bb662ca23d06b8226afaeaec58dd57ac398..ae8e020876e486b303524fba0aefc6c8b04e154c 100644 (file)
@@ -2323,8 +2323,6 @@ parse_rockridge_TF1(struct file_info *file, const unsigned char *data,
                if ((flag & 8) && data_length >= 17) {
                        /* Attribute change time. */
                        file->ctime = isodate17(data);
-                       data += 17;
-                       data_length -= 17;
                }
        } else {
                /* Use 7-byte time format. */
@@ -2349,8 +2347,6 @@ parse_rockridge_TF1(struct file_info *file, const unsigned char *data,
                if ((flag & 8) && data_length >= 7) {
                        /* Attribute change time. */
                        file->ctime = isodate7(data);
-                       data += 7;
-                       data_length -= 7;
                }
        }
 }