From: Lasse Collin Date: Mon, 6 May 2024 20:04:31 +0000 (+0300) Subject: xz: Add braces to a for-statement and to an if-statement X-Git-Tag: v5.7.1alpha~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bef5b8d17dd5e009d6a6b2becc2dc535da53937;p=thirdparty%2Fxz.git xz: Add braces to a for-statement and to an if-statement No functional changes. Fixes: 5f0c5a04388f8334962c70bc37a8c2ff8f605e0a Fixes: 479fd58d60622331fcbe48fddf756927b9f80d9a --- diff --git a/src/xz/coder.c b/src/xz/coder.c index d694c8e0..3f5e41cd 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -695,7 +695,7 @@ coder_set_compression_settings(void) continue; for (uint32_t j = 0; filters[i][j].id != LZMA_VLI_UNKNOWN; - j++) + j++) { if ((filters[i][j].id == LZMA_FILTER_LZMA2 || filters[i][j].id == LZMA_FILTER_LZMA1) @@ -711,6 +711,7 @@ coder_set_compression_settings(void) r->orig_dict_size = opt->dict_size; opt->dict_size &= ~((UINT32_C(1) << 20) - 1); } + } } // Loop until all filters use <= memory_limit, or exit. @@ -1288,9 +1289,10 @@ coder_normal(file_pair *pair) ret = lzma_code(&strm, action); // Write out if the output buffer became full. - if (strm.avail_out == 0) + if (strm.avail_out == 0) { if (coder_write_output(pair)) break; + } #ifdef HAVE_ENCODERS if (ret == LZMA_STREAM_END && (action == LZMA_SYNC_FLUSH