mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 17:49:23 +00:00
fix typos in setkey_func.
This commit is contained in:
1 parent
cccfe78a6a
commit
c325ead317
3 files changed
+15
-6
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user