Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/amiga Fix uninitialized variable.



details:   https://anonhg.NetBSD.org/src/rev/2334a0f978ae
branches:  trunk
changeset: 554364:2334a0f978ae
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Mon Oct 27 09:56:56 2003 +0000

description:
Fix uninitialized variable.

diffstat:

 sys/arch/amiga/amiga/autoconf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6c38263a1116 -r 2334a0f978ae sys/arch/amiga/amiga/autoconf.c
--- a/sys/arch/amiga/amiga/autoconf.c   Mon Oct 27 09:27:25 2003 +0000
+++ b/sys/arch/amiga/amiga/autoconf.c   Mon Oct 27 09:56:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.91 2003/01/20 21:24:56 aymeric Exp $    */
+/*     $NetBSD: autoconf.c,v 1.92 2003/10/27 09:56:56 mhitch Exp $     */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.91 2003/01/20 21:24:56 aymeric Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.92 2003/10/27 09:56:56 mhitch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -459,6 +459,7 @@
                            dkp->dk_driver->d_strategy == NULL)
                                continue;
 
+                       bdp = NULL;
 #if NFD > 0
                        if (fd_bdevsw.d_strategy == dkp->dk_driver->d_strategy)
                                bdp = &fd_bdevsw;



Home | Main Index | Thread Index | Old Index