]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add missing brackets to if clause
authorSarah Gilmore <sgilmore@mathworks.com>
Tue, 25 Apr 2023 13:23:39 +0000 (09:23 -0400)
committerMartin Matuška <martin@matuska.de>
Thu, 13 Jul 2023 22:50:24 +0000 (00:50 +0200)
libarchive/archive_write_disk_posix.c

index 0948f218adee760f01909a5f279cdc7a61536778..f28aaefdce5f1c5a87593f09a6c73a796f379329 100644 (file)
@@ -1752,9 +1752,10 @@ _archive_write_disk_finish_entry(struct archive *_a)
                 * to see what happened.
                 */
                a->pst = NULL;
-               if ((ret = lazy_stat(a)) != ARCHIVE_OK)
-                       close_file_descriptor(a);
-                       return (ret);
+        if ((ret = lazy_stat(a)) != ARCHIVE_OK) {
+            close_file_descriptor(a);
+            return (ret);
+        }
                /* We can use lseek()/write() to extend the file if
                 * ftruncate didn't work or isn't available. */
                if (a->st.st_size < a->filesize) {