diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2010-09-22 11:39:02 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2010-09-22 11:39:02 +0000 |
commit | 3d76a553175d43ca7e8bd04191eaf34017423b85 (patch) | |
tree | 65bb8a68b0cd0c9b8b996252262236fc2a35f1f5 | |
parent | 187d616798b26eb5b911587b291ef4462c53e9f0 (diff) |
nextmsg could be used uninitialized as well.
``Go ahead, its free'' deraadt@.
-rw-r--r-- | usr.bin/msgs/msgs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c index 50addfc50e9..7bb6498b350 100644 --- a/usr.bin/msgs/msgs.c +++ b/usr.bin/msgs/msgs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msgs.c,v 1.35 2010/09/22 11:10:52 lum Exp $ */ +/* $OpenBSD: msgs.c,v 1.36 2010/09/22 11:39:01 pirofti 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 = 0, nextmsg, lastmsg = 0; + int firstmsg = 0, nextmsg = 0, lastmsg = 0; int blast = 0; FILE *bounds; char *cp; |