]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix DONT_FAIL_ON_CRC_ERROR ifndef logic (#2079)
authortnias <phil@grmr.de>
Sat, 2 Mar 2024 17:48:50 +0000 (17:48 +0000)
committerGitHub <noreply@github.com>
Sat, 2 Mar 2024 17:48:50 +0000 (09:48 -0800)
commit9ba8292aafacb7de8ff3629e823a862aa2ec569f
tree162afdab9bd640c12abaace4b2c340730a6dd219
parentd8ec28c080a7d2c18c854067e97fd1fa883d88b3
Fix DONT_FAIL_ON_CRC_ERROR ifndef logic (#2079)

An `if` without curly braces guards the following statement.

When `#ifndef` removes that statement, the `if` now guards whatever
statement comes next.

I have not yet tested the changes.

Introduced in https://github.com/libarchive/libarchive/pull/1790.
CC people from original PR: @jvoisin @mmatuska
libarchive/archive_read_support_filter_lz4.c
libarchive/archive_read_support_filter_lzop.c
libarchive/archive_read_support_format_7zip.c
libarchive/archive_read_support_format_xar.c