mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
Leif's build fixes
This commit is contained in:
1 parent
fa8058da9e
commit
bb9f92b9b1
8 files changed
+90
-92
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user