Module Name: src
Committed By: martin
Date: Wed Aug 31 16:24:34 UTC 2016
Modified Files:
src/sys/arch/sparc/stand/ofwboot: boot.c
Log Message:
Init the markers array to all 0 - pointed out by Mark Cave-Ayland.
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/sparc/stand/ofwboot/boot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/stand/ofwboot/boot.c
diff -u src/sys/arch/sparc/stand/ofwboot/boot.c:1.33 src/sys/arch/sparc/stand/ofwboot/boot.c:1.34
--- src/sys/arch/sparc/stand/ofwboot/boot.c:1.33 Sat Jun 11 06:43:47 2016
+++ src/sys/arch/sparc/stand/ofwboot/boot.c Wed Aug 31 16:24:34 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.33 2016/06/11 06:43:47 dholland Exp $ */
+/* $NetBSD: boot.c,v 1.34 2016/08/31 16:24:34 martin Exp $ */
/*
* Copyright (c) 1997, 1999 Eduardo E. Horvath. All rights reserved.
@@ -364,8 +364,9 @@ start_kernel(char *kernel, char *bootlin
int boothowto)
{
int fd;
- u_long marks[MARK_MAX];
+ u_long marks[MARK_MAX] = {0};
int flags = LOAD_ALL;
+
if (isfloppy)
flags &= ~LOAD_BACKWARDS;