Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Fix an uninitialized variable. From Krister Walf...



details:   https://anonhg.NetBSD.org/src/rev/825caeb7ac72
branches:  trunk
changeset: 483687:825caeb7ac72
user:      augustss <augustss%NetBSD.org@localhost>
date:      Wed Mar 15 22:41:29 2000 +0000

description:
Fix an uninitialized variable.  From Krister Walfridsson <cato%df.lth.se@localhost>

diffstat:

 sys/dev/ic/ac97.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 35b28309c43c -r 825caeb7ac72 sys/dev/ic/ac97.c
--- a/sys/dev/ic/ac97.c Wed Mar 15 22:40:30 2000 +0000
+++ b/sys/dev/ic/ac97.c Wed Mar 15 22:41:29 2000 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ac97.c,v 1.5 1999/11/24 23:21:01 augustss Exp $ */
+/*      $NetBSD: ac97.c,v 1.6 2000/03/15 22:41:29 augustss Exp $ */
 /*      $OpenBSD: ac97.c,v 1.2 1999/09/21 16:06:27 csapuntz Exp $ */
 
 /*
@@ -574,6 +574,8 @@
                        name = si->device;
                else if (si->class)
                        name = si->class;
+               else
+                       name = 0;
                
                if (name)
                        strcpy(dip->label.name, name);



Home | Main Index | Thread Index | Old Index