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 <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-10 00:53:53 +00:00
parent 8f3bc13ac5
commit 08b1d95874
+1 -1
View File
@@ -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)