Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/libexec/getty Pull up revision 1.48 (requested by lukem i...



details:   https://anonhg.NetBSD.org/src/rev/3ce9f917a7dc
branches:  netbsd-3
changeset: 576200:3ce9f917a7dc
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 13 22:05:04 2005 +0000

description:
Pull up revision 1.48 (requested by lukem in ticket #398):
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.

diffstat:

 libexec/getty/main.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ff1ee87ebed2 -r 3ce9f917a7dc libexec/getty/main.c
--- a/libexec/getty/main.c      Mon Jun 13 22:03:51 2005 +0000
+++ b/libexec/getty/main.c      Mon Jun 13 22:05:04 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.46.2.1 2005/03/19 18:00:47 tron Exp $       */
+/*     $NetBSD: main.c,v 1.46.2.2 2005/06/13 22:05:04 tron Exp $       */
 
 /*-
  * Copyright (c) 1980, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "from: @(#)main.c       8.1 (Berkeley) 6/20/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.46.2.1 2005/03/19 18:00:47 tron Exp $");
+__RCSID("$NetBSD: main.c,v 1.46.2.2 2005/06/13 22:05:04 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -296,6 +296,7 @@
        for (;;) {
                int off;
 
+               rval = 0;
                gettable(tname, tabent);
                if (OPset || EPset || APset)
                        APset++, OPset++, EPset++;



Home | Main Index | Thread Index | Old Index