]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add "else" statement. it's not necessary but it should be.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 17 Apr 2011 08:01:43 +0000 (04:01 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 17 Apr 2011 08:01:43 +0000 (04:01 -0400)
SVN-Revision: 3249

libarchive/archive_write_disk_posix.c
libarchive/archive_write_disk_windows.c

index 8f70afc27c8e1645d0140064bec2e2f23cd19f94..69562246519b662ea922d66649b36d2c2b402f94 100644 (file)
@@ -1207,7 +1207,7 @@ create_filesystem_object(struct archive_write_disk *a)
                if (r == 0 && a->filesize <= 0) {
                        a->todo = 0;
                        a->deferred = 0;
-               } if (r == 0 && a->filesize > 0) {
+               } else if (r == 0 && a->filesize > 0) {
                        a->fd = open(a->name, O_WRONLY | O_TRUNC | O_BINARY);
                        if (a->fd < 0)
                                r = errno;
index 78ffb1670d9579b40afd5a1c7ea181cb40d9bd52..36b41221026e3c790c74512cb5aa2e9c06443399 100644 (file)
@@ -1464,7 +1464,7 @@ create_filesystem_object(struct archive_write_disk *a)
                if (r == 0 && a->filesize <= 0) {
                        a->todo = 0;
                        a->deferred = 0;
-               } if (r == 0 && a->filesize > 0) {
+               } else if (r == 0 && a->filesize > 0) {
                        a->fh = CreateFileW(namefull, GENERIC_WRITE, 0, NULL,
                            TRUNCATE_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
                        if (a->fh == INVALID_HANDLE_VALUE) {