summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2010-09-22 11:10:53 +0000
committerlum <lum@cvs.openbsd.org>2010-09-22 11:10:53 +0000
commit187d616798b26eb5b911587b291ef4462c53e9f0 (patch)
tree1e12141a307137c6b75b2b11ebcd5b046a38b438
parent87a12cd7e768bc898075277fac69684da499e47e (diff)
Initialise firstmsg so we do not have random number when
bounds file is empty. ok deraadt@ henning@
-rw-r--r--usr.bin/msgs/msgs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c
index c1f525c08ad..50addfc50e9 100644
--- a/usr.bin/msgs/msgs.c
+++ b/usr.bin/msgs/msgs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msgs.c,v 1.34 2009/10/27 23:59:40 deraadt Exp $ */
+/* $OpenBSD: msgs.c,v 1.35 2010/09/22 11:10:52 lum Exp $ */
/* $NetBSD: msgs.c,v 1.7 1995/09/28 06:57:40 tls Exp $ */
/*-
@@ -150,7 +150,7 @@ main(int argc, char *argv[])
bool newrc, already;
int rcfirst = 0; /* first message to print (from .rc) */
int rcback = 0; /* amount to back off of rcfirst */
- int firstmsg, nextmsg, lastmsg = 0;
+ int firstmsg = 0, nextmsg, lastmsg = 0;
int blast = 0;
FILE *bounds;
char *cp;