From b8dea74f96448c3de2c0f7488fee1929c050cc5c Mon Sep 17 00:00:00 2001 From: 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/kbdcontrol.c') diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index bd02828..f3f6bc9 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.1