diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-10 00:53:53 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-10 00:53:53 +0000 |
| commit | 08b1d9587427dd5e6c047b4e5bb92e99ad3df732 (patch) | |
| tree | 01023ac0d64339119c571efdad47c1c9370287ca /util/nvmutil/nvmutil.c | |
| parent | 8f3bc13ac5b4a1d63aaec392bae9b8eb71f05f33 (diff) | |
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>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
