Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/stand/ofwboot Fix uninitialized variable bug.



details:   https://anonhg.NetBSD.org/src/rev/82f9d9b7d0c6
branches:  trunk
changeset: 487515:82f9d9b7d0c6
user:      eeh <eeh%NetBSD.org@localhost>
date:      Thu Jun 08 22:58:42 2000 +0000

description:
Fix uninitialized variable bug.

diffstat:

 sys/arch/sparc64/stand/ofwboot/boot.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 783e093aba46 -r 82f9d9b7d0c6 sys/arch/sparc64/stand/ofwboot/boot.c
--- a/sys/arch/sparc64/stand/ofwboot/boot.c     Thu Jun 08 22:43:15 2000 +0000
+++ b/sys/arch/sparc64/stand/ofwboot/boot.c     Thu Jun 08 22:58:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.13 2000/05/26 22:59:51 eeh Exp $    */
+/*     $NetBSD: boot.c,v 1.14 2000/06/08 22:58:42 eeh Exp $    */
 #define DEBUG
 /*
  * Copyright (c) 1997, 1999 Eduardo E. Horvath.  All rights reserved.
@@ -133,6 +133,7 @@
        /* Insert the kernel name if it is not there. */
        if (str[0] == 0 || str[0] == '-') {
                /* Move args down the string */
+               i=0;
                for (cp = str + strlen(kernelname); str[i]; i++)
                        cp[i] = str[i];
                /* Copy over kernelname */
@@ -286,10 +287,6 @@
 
        close(fd);
 
-       /* If we want to run the debugger, pause at the PROM here */
-       if (boothowto & RB_KDB)
-               OF_enter();
-
        /* XXX this should be replaced w/ a mountroothook. */
        if (floppyboot) {
                printf("Please insert root disk and press ENTER ");



Home | Main Index | Thread Index | Old Index