Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/stand/ofwboot Init the markers array to all 0...
details: https://anonhg.NetBSD.org/src/rev/9cc7c31ef2e6
branches: trunk
changeset: 347528:9cc7c31ef2e6
user: martin <martin%NetBSD.org@localhost>
date: Wed Aug 31 16:24:34 2016 +0000
description:
Init the markers array to all 0 - pointed out by Mark Cave-Ayland.
diffstat:
sys/arch/sparc/stand/ofwboot/boot.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r c0c544a573c2 -r 9cc7c31ef2e6 sys/arch/sparc/stand/ofwboot/boot.c
--- a/sys/arch/sparc/stand/ofwboot/boot.c Wed Aug 31 16:22:37 2016 +0000
+++ b/sys/arch/sparc/stand/ofwboot/boot.c Wed Aug 31 16:24:34 2016 +0000
@@ -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 @@
int boothowto)
{
int fd;
- u_long marks[MARK_MAX];
+ u_long marks[MARK_MAX] = {0};
int flags = LOAD_ALL;
+
if (isfloppy)
flags &= ~LOAD_BACKWARDS;
Home |
Main Index |
Thread Index |
Old Index