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 avoid uninitalised pointers.



details:   https://anonhg.NetBSD.org/src/rev/038df6b1ed65
branches:  trunk
changeset: 473447:038df6b1ed65
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jun 04 14:29:38 1999 +0000

description:
avoid uninitalised pointers.

diffstat:

 sys/arch/sparc64/dev/ebus.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 740ada26cc97 -r 038df6b1ed65 sys/arch/sparc64/dev/ebus.c
--- a/sys/arch/sparc64/dev/ebus.c       Fri Jun 04 14:00:38 1999 +0000
+++ b/sys/arch/sparc64/dev/ebus.c       Fri Jun 04 14:29:38 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ebus.c,v 1.1 1999/06/04 13:29:13 mrg Exp $     */
+/*     $NetBSD: ebus.c,v 1.2 1999/06/04 14:29:38 mrg Exp $     */
 
 /*
  * Copyright (c) 1999 Matthew R. Green
@@ -255,6 +255,7 @@
                DPRINTF(EDB_PROM, ("; pcibus %d dev %d fn %d\n", pcibus, pa->pa_device, pa->pa_function));
 
                /* get the PCI bus/device/function for this node */
+               ap = NULL;
                if (getprop(node, "reg", sizeof(int), &n,
                    (void **)&ap))
                        continue;



Home | Main Index | Thread Index | Old Index