Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons Don't let bd.which be unitialized... Thanks D...



details:   https://anonhg.NetBSD.org/src/rev/72e569eee022
branches:  trunk
changeset: 473357:72e569eee022
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 30 21:13:04 1999 +0000

description:
Don't let bd.which be unitialized... Thanks Dave!

diffstat:

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

diffs (18 lines):

diff -r 9d57f899f14a -r 72e569eee022 sys/dev/wscons/wsdisplay_compat_usl.c
--- a/sys/dev/wscons/wsdisplay_compat_usl.c     Sun May 30 20:26:20 1999 +0000
+++ b/sys/dev/wscons/wsdisplay_compat_usl.c     Sun May 30 21:13:04 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsdisplay_compat_usl.c,v 1.8 1999/05/30 04:21:29 christos Exp $ */
+/* $NetBSD: wsdisplay_compat_usl.c,v 1.9 1999/05/30 21:13:04 christos Exp $ */
 
 /*
  * Copyright (c) 1998
@@ -442,6 +442,8 @@
                                bd.which = WSKBD_BELL_DOPERIOD;
                                bd.period = d >> 16; /* ms */
                        }
+                       else
+                               bd.which = 0;
                        if (d & 0xffff) {
                                bd.which |= WSKBD_BELL_DOPITCH;
                                bd.pitch = PCVT_SYSBEEPF/(d & 0xffff); /* Hz */



Home | Main Index | Thread Index | Old Index