summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2016-07-05 05:06:27 +0000
committerjsg <jsg@openbsd.org>2016-07-05 05:06:27 +0000
commit8b14d803ba1a7bafdd4b40811142c3a45954d0ed (patch)
tree027ec52cb8dfcd165c61e795be615497aac2b8f2
parentremove extra assignment of s from 1.11, fix regression test (diff)
downloadwireguard-openbsd-8b14d803ba1a7bafdd4b40811142c3a45954d0ed.tar.xz
wireguard-openbsd-8b14d803ba1a7bafdd4b40811142c3a45954d0ed.zip
Modify code added in rev 1.30 to use the correct variable instead of a
different uninitialised one. ok martijn@
-rw-r--r--usr.bin/tail/forward.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index e6b8f20b5bb..ca8ed658362 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: forward.c,v 1.30 2016/01/25 21:44:01 martijn Exp $ */
+/* $OpenBSD: forward.c,v 1.31 2016/07/05 05:06:27 jsg Exp $ */
/* $NetBSD: forward.c,v 1.7 1996/02/13 16:49:10 ghudson Exp $ */
/*-
@@ -353,7 +353,7 @@ tfreopen(struct tailfile *tf) {
else
reopen[nfiles-1] = tf;
} else {
- warnx("Lost track of %s", ttf->fname);
+ warnx("Lost track of %s", tf->fname);
nfiles--;
}
}