summaryrefslogtreecommitdiffstats
path: root/usr.bin/truncate
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-07-24 21:46:12 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-07-24 21:46:12 +0000
commit1951291f8f92a47df03a630735e21c023e3ef3ea (patch)
tree03fdb84dd75312c973f8d8d562d0d4cd87dc5ca3 /usr.bin/truncate
parentadd17facd3ce06dc1e311f52be4182e71291687f (diff)
downloadFreeBSD-src-1951291f8f92a47df03a630735e21c023e3ef3ea.zip
FreeBSD-src-1951291f8f92a47df03a630735e21c023e3ef3ea.tar.gz
Shut an optimizing compiler up about possibly (but never) unused
variables. Submitted by: charnier
Diffstat (limited to 'usr.bin/truncate')
-rw-r--r--usr.bin/truncate/truncate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/truncate/truncate.c b/usr.bin/truncate/truncate.c
index 6a16749..8a1feff 100644
--- a/usr.bin/truncate/truncate.c
+++ b/usr.bin/truncate/truncate.c
@@ -57,6 +57,8 @@ main(int argc, char **argv)
int ch, error, fd, oflags;
char *fname, *rname;
+ rsize = tsize = 0;
+ rname = NULL;
error = 0;
while ((ch = getopt(argc, argv, "cr:s:")) != -1)
switch (ch) {
OpenPOWER on IntegriCloud