hostdisk: fix crash with NULL device.map
grub-macbless calls grub_util_biosdisk_init with NULL device.map.
This commit is contained in:
parent
5370dcfdae
commit
2498dc7a3a
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ read_device_map (const char *dev_map)
|
|||
char buf[1024]; /* XXX */
|
||||
int lineno = 0;
|
||||
|
||||
if (dev_map[0] == '\0')
|
||||
if (!dev_map || dev_map[0] == '\0')
|
||||
{
|
||||
grub_util_info ("no device.map");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue