From 82db177d2811ae41d68d9cb8cd48d9f534f67ace Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 18 Apr 2025 16:37:36 +0900 Subject: [PATCH] Fix potential uninitialized variable warning Code logic ensures that the variable is already set to a value where the warning occurs (sometimes), but for now, just initialize to zero to inhibit the warning. --- src/archiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/archiver.c b/src/archiver.c index 87ff9bb..80dcb01 100644 --- a/src/archiver.c +++ b/src/archiver.c @@ -256,7 +256,7 @@ int write_files_fn_file_v0(void *data, void *ud) { int_fast8_t write_again = 0; int_fast8_t write_done = 0; int_fast8_t read_done = 0; - size_t write_count; + size_t write_count = 0; size_t read_count; ssize_t ret; while (!write_done || !read_done) { -- 2.49.0