Leif's build fixes
This commit is contained in:
parent
fa8058da9e
commit
bb9f92b9b1
8 changed files with 90 additions and 92 deletions
|
@ -130,10 +130,9 @@ grub_machine_get_bootlocation (char **device, char **path)
|
|||
tmp = uboot_env_get ("grub_bootdev");
|
||||
if (tmp)
|
||||
{
|
||||
*device = grub_malloc (grub_strlen (tmp) + 1);
|
||||
*device = grub_strdup (tmp);
|
||||
if (*device == NULL)
|
||||
return;
|
||||
grub_strncpy (*device, tmp, grub_strlen (tmp) + 1);
|
||||
}
|
||||
else
|
||||
*device = NULL;
|
||||
|
@ -141,10 +140,9 @@ grub_machine_get_bootlocation (char **device, char **path)
|
|||
tmp = uboot_env_get ("grub_bootpath");
|
||||
if (tmp)
|
||||
{
|
||||
*path = grub_malloc (grub_strlen (tmp) + 1);
|
||||
*path = grub_strdup (tmp);
|
||||
if (*path == NULL)
|
||||
return;
|
||||
grub_strncpy (*path, tmp, grub_strlen (tmp) + 1);
|
||||
}
|
||||
else
|
||||
*path = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue