summaryrefslogtreecommitdiffstats
path: root/usr.bin/rev
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2006-07-30 06:25:43 +0000
committerray <ray@openbsd.org>2006-07-30 06:25:43 +0000
commit2f9da20ed674bae9123a348377cd62a003beacd6 (patch)
tree3df7c117d5c0d938cf8cf91fcd471be723dcc00a /usr.bin/rev
parentDonot pass a uninitialized pointer to aml_register_notify(), should fix PR5153 (diff)
downloadwireguard-openbsd-2f9da20ed674bae9123a348377cd62a003beacd6.tar.xz
wireguard-openbsd-2f9da20ed674bae9123a348377cd62a003beacd6.zip
Remove double variable assignment.
From Bret Lambert <bret dot lambert at gmail dot com> OK krw@ and deraadt@.
Diffstat (limited to 'usr.bin/rev')
-rw-r--r--usr.bin/rev/rev.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c
index 420a916415b..3eba3a7c49e 100644
--- a/usr.bin/rev/rev.c
+++ b/usr.bin/rev/rev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rev.c,v 1.7 2003/06/10 22:20:50 deraadt Exp $ */
+/* $OpenBSD: rev.c,v 1.8 2006/07/30 06:25:43 ray Exp $ */
/* $NetBSD: rev.c,v 1.5 1995/09/28 08:49:40 tls Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: rev.c,v 1.7 2003/06/10 22:20:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rev.c,v 1.8 2006/07/30 06:25:43 ray Exp $";
#endif
#endif /* not lint */
@@ -89,7 +89,6 @@ main(int argc, char *argv[])
while ((p = fgetln(fp, &len)) != NULL) {
if (p[len - 1] == '\n')
--len;
- t = p + len - 1;
for (t = p + len - 1; t >= p; --t)
putchar(*t);
putchar('\n');