From 0030729a09896602b55571afb8be7fa9b29b730c Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Wed, 21 Oct 2020 16:12:14 +1100 Subject: blkdiscard: fix uninitialised offset --- toys/other/blkdiscard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other') 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); -- cgit v1.2.3