[Toybox] [PATCH] blkdiscard: fix uninitialised offset
patrick.oppenlander at gmail.com
patrick.oppenlander at gmail.com
Tue Oct 20 22:12:14 PDT 2020
From: Patrick Oppenlander <patrick.oppenlander at gmail.com>
---
toys/other/blkdiscard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toys/other/blkdiscard.c b/toys/other/blkdiscard.c
index a516676e..862e4fed 100644
--- a/toys/other/blkdiscard.c
+++ b/toys/other/blkdiscard.c
@@ -44,7 +44,7 @@ void blkdiscard_main(void)
unsigned long long ol[2];
// TODO: if numeric arg was long long array could live in TT.
- if (FLAG(o)) ol[0] = TT.o;
+ ol[0] = TT.o;
if (FLAG(l)) ol[1] = TT.l;
else {
xioctl(fd, BLKGETSIZE64, ol+1);
--
2.28.0
More information about the Toybox
mailing list