aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorPatrick Oppenlander <patrick.oppenlander@gmail.com>2020-10-21 16:12:14 +1100
committerRob Landley <rob@landley.net>2020-10-21 16:23:29 -0500
commit0030729a09896602b55571afb8be7fa9b29b730c (patch)
tree29ac69fb6631a6832ad8925a6d8df897561ac53a /toys/other
parente4e6fd8b454c11a4663b6c7afacad0ed4008a0cb (diff)
downloadtoybox-0030729a09896602b55571afb8be7fa9b29b730c.tar.gz
blkdiscard: fix uninitialised offset
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/blkdiscard.c2
1 files changed, 1 insertions, 1 deletions
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);