summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-01-18 19:01:56 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-01-18 19:01:56 +0000
commit032800072380ecefa20ade801ee65f59b04af6f9 (patch)
tree0be05838671426a3afe4c9db00b2ec7228e1984b
parent6f133e36801628f2f0c8474c32a59bfea2c700ec (diff)
make sure ln.len gets initialized. Okay millert@
-rw-r--r--usr.bin/grep/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c
index a2378abe306..a5ee22c9127 100644
--- a/usr.bin/grep/util.c
+++ b/usr.bin/grep/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.19 2003/12/06 20:14:40 otto Exp $ */
+/* $OpenBSD: util.c,v 1.20 2004/01/18 19:01:55 espie Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -117,6 +117,7 @@ procfile(char *fn)
ln.file = fn;
ln.line_no = 0;
+ ln.len = 0;
linesqueued = 0;
ln.off = -1;