]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Set return parameters.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 18 Oct 2009 05:31:20 +0000 (01:31 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 18 Oct 2009 05:31:20 +0000 (01:31 -0400)
SVN-Revision: 1541

libarchive/archive_read_support_format_iso9660.c

index 47ff13488d6c091c3490a220430e560b9eb9c904..f910ef10bb372c5b33ab7e0fcfa8bb2ee9f30aa4 100644 (file)
@@ -1441,8 +1441,9 @@ archive_read_format_iso9660_read_data(struct archive_read *a,
                            iso9660->pathname.s,
                            iso9660->entry_content->offset,
                            iso9660->current_position);
-                       iso9660->entry_bytes_remaining = 0;
-                       iso9660->entry_sparse_offset = 0;
+                       *buff = NULL;
+                       *size = 0;
+                       *offset = iso9660->entry_sparse_offset;
                        return (ARCHIVE_WARN);
                }
                iso9660->entry_bytes_remaining = iso9660->entry_content->size;