From a88bd5e9a0c5db495d767b0470329f4b6ad47642 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 31 Jul 2023 20:24:34 -0500 Subject: [PATCH] Initialize uninitialized variables gcc didn't warn about. --- toys/posix/dd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/posix/dd.c b/toys/posix/dd.c index 9523f4a3..4c9670e7 100644 --- a/toys/posix/dd.c +++ b/toys/posix/dd.c @@ -151,7 +151,7 @@ void dd_main() long long len; struct iovec iov[2]; int opos, olen, ifd = 0, ofd = 1, trunc = O_TRUNC, ii; - unsigned conv, iflag, oflag; + unsigned conv = 0, iflag = 0, oflag = 0; TT.show_xfer = TT.show_records = 1; -- 2.39.2