Ensure rval is initialized before we try to check it; it won't be set

if AL or NN are in use.
Detected with gcc -Wuninitialized.
This commit is contained in:
lukem 2005-06-01 15:50:00 +00:00
parent 5166671bc3
commit a8ce874400
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.47 2005/03/17 01:25:40 christos Exp $ */
/* $NetBSD: main.c,v 1.48 2005/06/01 15:50:00 lukem Exp $ */
/*-
* Copyright (c) 1980, 1993
@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";
#else
__RCSID("$NetBSD: main.c,v 1.47 2005/03/17 01:25:40 christos Exp $");
__RCSID("$NetBSD: main.c,v 1.48 2005/06/01 15:50:00 lukem Exp $");
#endif
#endif /* not lint */
@ -296,6 +296,7 @@ main(int argc, char *argv[])
for (;;) {
int off;
rval = 0;
gettable(tname, tabent);
if (OPset || EPset || APset)
APset++, OPset++, EPset++;