From afab29051f77de9d801db778f538d2a6bdbf6d30 Mon Sep 17 00:00:00 2001 From: Kazutaka YOKOTA Date: Fri, 4 Sep 1998 10:15:48 +0000 Subject: Fix uninitialized variable. PR: bin/7799 Submitted by: Sheldon Hearn (axl@iafrica.com) --- usr.sbin/kbdcontrol/kbdcontrol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/kbdcontrol') diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index bd028286ece7..f3f6bc90cfc6 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.c +++ b/usr.sbin/kbdcontrol/kbdcontrol.c @@ -28,7 +28,7 @@ #ifndef lint static const char rcsid[] = - "$Id: kbdcontrol.c,v 1.16 1998/08/03 11:33:22 yokota Exp $"; + "$Id: kbdcontrol.c,v 1.17 1998/08/06 09:44:23 yokota Exp $"; #endif /* not lint */ #include @@ -850,6 +850,7 @@ badopt: rate.rep = n; } + rate.pad = 0; if (ioctl(0, KDSETRAD, rate) < 0) warn("setting keyboard rate"); } -- cgit v1.2.3