Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Fix uninitialized pointer bug.
details: https://anonhg.NetBSD.org/src/rev/ea7bc45a6866
branches: trunk
changeset: 488162:ea7bc45a6866
user: eeh <eeh%NetBSD.org@localhost>
date: Mon Jun 19 22:29:15 2000 +0000
description:
Fix uninitialized pointer bug.
diffstat:
sys/arch/sparc64/dev/psycho.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 38c9ceec43df -r ea7bc45a6866 sys/arch/sparc64/dev/psycho.c
--- a/sys/arch/sparc64/dev/psycho.c Mon Jun 19 21:06:32 2000 +0000
+++ b/sys/arch/sparc64/dev/psycho.c Mon Jun 19 22:29:15 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psycho.c,v 1.13 2000/06/08 16:17:29 eeh Exp $ */
+/* $NetBSD: psycho.c,v 1.14 2000/06/19 22:29:15 eeh Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@@ -244,7 +244,7 @@
struct psycho_pbm *pp;
bus_space_handle_t bh;
u_int64_t csr;
- int node;
+ unsigned int node;
int sabre_br[2], simba_br[2];
/* who? said a voice, incredulous */
@@ -295,7 +295,7 @@
for (node = firstchild(sc->sc_node); node; node = nextsibling(node)) {
char *name = getpropstring(node, "name");
char *model, who;
- struct psycho_registers *regs;
+ struct psycho_registers *regs = NULL;
int nregs, fn;
if (strcmp(name, ROM_PCI_NAME) != 0)
Home |
Main Index |
Thread Index |
Old Index