From 0ee0bd83319ac84fbbc7bd6eda1a6166c4784cf8 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Wed, 6 Dec 1995 07:34:49 +0000 Subject: [PATCH] Initialize some uninitialized variables to fix a bug that sometimes resulted in msgs doing strange things, including getting stuck in an infinite loop. --- usr.bin/msgs/msgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c index 6f2a3a47334d..be1b4074c0ab 100644 --- a/usr.bin/msgs/msgs.c +++ b/usr.bin/msgs/msgs.c @@ -153,7 +153,7 @@ 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 = 0, lastmsg = 0; int blast = 0; FILE *bounds;