]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
When trying to set LZMA compression, pay attention to the return value
authorTim Kientzle <kientzle@gmail.com>
Sat, 6 Feb 2010 20:30:53 +0000 (15:30 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sat, 6 Feb 2010 20:30:53 +0000 (15:30 -0500)
from libarchive.

SVN-Revision: 1884

tar/write.c

index f89277a803b614f0aac1269e7a06fc827bb55bac..0d5c65c999bb915da7e07bba8816e303f178c402 100644 (file)
@@ -221,7 +221,7 @@ tar_mode_c(struct bsdtar *bsdtar)
                        r = archive_write_set_compression_xz(a);
                        break;
                case OPTION_LZMA:
-                       archive_write_set_compression_lzma(a);
+                       r = archive_write_set_compression_lzma(a);
                        break;
                case 'z':
                        r = archive_write_set_compression_gzip(a);