diff options
author | Mateusz Moscicki <m.moscicki2@partner.samsung.com> | 2022-03-18 10:43:18 +0100 |
---|---|---|
committer | Mateusz Moscicki <m.moscicki2@partner.samsung.com> | 2022-03-18 10:43:18 +0100 |
commit | 14039a4950f28b6accf8bd5d2479b31dc09816fa (patch) | |
tree | 26092c40762c5e614dda1c3c62d7cfe3104e9eea | |
parent | e8b2d199148cc311fc42c0f9cb4fe39ef5257e23 (diff) | |
download | libtota-14039a4950f28b6accf8bd5d2479b31dc09816fa.tar.gz libtota-14039a4950f28b6accf8bd5d2479b31dc09816fa.tar.bz2 libtota-14039a4950f28b6accf8bd5d2479b31dc09816fa.zip |
Fix uninitialized variable errorsubmit/tizen/20220318.100454accepted/tizen/unified/20220321.141140
Change-Id: I5b8694c12d4f3a80aecc128fc49c921809cb1a4c
-rw-r--r-- | bsdiff/ss_brotli_patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsdiff/ss_brotli_patch.c b/bsdiff/ss_brotli_patch.c index 310478c..6574d80 100644 --- a/bsdiff/ss_brotli_patch.c +++ b/bsdiff/ss_brotli_patch.c @@ -258,6 +258,7 @@ int apply_patch_brotli(char *source_file, size_t source_size, char *dest_file, s assert(patch_file); int result; + uint64_t blocks = 0; struct bs_data data; init_data(&data); @@ -275,7 +276,6 @@ int apply_patch_brotli(char *source_file, size_t source_size, char *dest_file, s uint64_t total_write = 0; - uint64_t blocks = 0; while (total_write < data.dest_len) { /* * Make sure we can read the block header |