Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/news68k/stand/boot Fix an uninitialized variable fo...



details:   https://anonhg.NetBSD.org/src/rev/76c929a9d99f
branches:  trunk
changeset: 520200:76c929a9d99f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jan 04 16:30:02 2002 +0000

description:
Fix an uninitialized variable found by new toolchain.

diffstat:

 sys/arch/news68k/stand/boot/boot.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a32b8266e53f -r 76c929a9d99f sys/arch/news68k/stand/boot/boot.c
--- a/sys/arch/news68k/stand/boot/boot.c        Fri Jan 04 15:33:01 2002 +0000
+++ b/sys/arch/news68k/stand/boot/boot.c        Fri Jan 04 16:30:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.4 2001/01/30 14:29:48 tsutsui Exp $ */
+/*     $NetBSD: boot.c,v 1.5 2002/01/04 16:30:02 tsutsui Exp $ */
 
 /*-
  * Copyright (C) 1999 Izumi Tsutsui.  All rights reserved.
@@ -110,7 +110,7 @@
                if (fd != -1)
                        break;
        }
-       if (fd == -1) {
+       if (kernels[i] == NULL) {
 #if 0 /* bootxx() may be overrided by loaded kernel */
                return;
 #else



Home | Main Index | Thread Index | Old Index