mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
hostdisk: fix crash with NULL device.map
grub-macbless calls grub_util_biosdisk_init with NULL device.map.
This commit is contained in:
1 parent
5370dcfdae
commit
2498dc7a3a
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user