fix typos in setkey_func.

This commit is contained in:
okuji committed 2001-01-15 05:54:09 +00:00
1 parent cccfe78a6a
commit c325ead317
3 files changed
+15 -6

No files matched your search

+2 -2
View File
@@ -3394,7 +3394,7 @@ setkey_func (char *arg, int flags)
to_key = arg;
from_key = skip_to (0, to_key);
if (! to_key)
if (! *to_key)
{
/* If the user specifies no argument, reset the key mappings. */
grub_memset (bios_key_map, 0, KEY_MAP_SIZE * sizeof (unsigned short));
@@ -3402,7 +3402,7 @@ setkey_func (char *arg, int flags)
return 0;
}
else if (! from_key)
else if (! *from_key)
{
/* The user must specify two arguments or zero argument. */
errnum = ERR_BAD_ARGUMENT;