diff options
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c | 3 | ||||
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c b/Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c index 97828f6..2849b9f 100644 --- a/Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c +++ b/Utilities/cmlibarchive/libarchive/archive_write_disk_set_standard_lookup.c @@ -237,7 +237,8 @@ hash(const char *p) unsigned g, h = 0; while (*p != '\0') { h = ( h << 4 ) + *p++; - if (( g = h & 0xF0000000 )) { + g = h & 0xF0000000; + if (g) { h ^= g >> 24; h &= 0x0FFFFFFF; } diff --git a/Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c b/Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c index a617daf..ec5ff42 100644 --- a/Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c +++ b/Utilities/cmlibarchive/libarchive/archive_write_set_compression_bzip2.c @@ -284,7 +284,8 @@ archive_compressor_bzip2_finish(struct archive_write *a) } /* Finish compression cycle. */ - if ((ret = drive_compressor(a, state, 1))) + ret = drive_compressor(a, state, 1); + if (ret) goto cleanup; /* Optionally, pad the final compressed block. */ |