summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-07-07 13:20:38 +0000
committeryokota <yokota@FreeBSD.org>1999-07-07 13:20:38 +0000
commitde9b240dd7c3c1a682e04673eb1c25d2ef8c4cc5 (patch)
tree5a3978e522389e6b2204a04fd48ba56acefaad21
parent690005781d62e552b862208bd1f1deda37a6a24e (diff)
downloadFreeBSD-src-de9b240dd7c3c1a682e04673eb1c25d2ef8c4cc5.zip
FreeBSD-src-de9b240dd7c3c1a682e04673eb1c25d2ef8c4cc5.tar.gz
Do not list a null string in a dialog box.
-rw-r--r--usr.sbin/kbdmap/kbdmap.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/kbdmap/kbdmap.pl b/usr.sbin/kbdmap/kbdmap.pl
index 9d46c1f..a491261 100644
--- a/usr.sbin/kbdmap/kbdmap.pl
+++ b/usr.sbin/kbdmap/kbdmap.pl
@@ -26,7 +26,7 @@
#
# kbdmap/vidfont - front end for syscons
#
-# $Id: kbdmap.pl,v 1.7 1997/05/19 07:30:45 jkh Exp $
+# $Id: kbdmap.pl,v 1.8 1998/08/14 06:26:54 phk Exp $
# simple test if syscons works
@@ -210,7 +210,9 @@ sub menu_read {
# sort menu, font 8x8 is less than 8x14 and 8x16
foreach $e (sort(keys %keymap)) {
- push(@a, "\"$keymap{$e}\" \"\"");
+ if ($keymap{$e}) {
+ push(@a, "\"$keymap{$e}\" \"\"");
+ }
}
# side effects to @a
grep(s/8x8/8x08/, @a);
OpenPOWER on IntegriCloud