From 08b1d9587427dd5e6c047b4e5bb92e99ad3df732 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 10 Mar 2026 00:53:53 +0000 Subject: util/nvmutil: initialise w in gbe_cat_buf no build error at the moment, nor would there be if using clang or gcc, but i imagine some buggy compilers might complain. remember: portability. i also want this code to compile on old, buggy compilers. logically, this initialisation is redundant. Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 2e31b2d7..f2c0d5d7 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1133,7 +1133,7 @@ static void gbe_cat_buf(uint8_t *b) { size_t wc; - ssize_t w; + ssize_t w = 0; for (wc = 0; wc < GBE_PART_SIZE; wc += w) if ((w = write(STDOUT_FILENO, b + wc, GBE_PART_SIZE - wc)) < 1) -- cgit v1.2.1