Leif's build fixes

This commit is contained in:
Leif Lindholm authored and Vladimir 'phcoder' Serbinenko committed 2013-05-03 14:41:08 +02:00
1 parent fa8058da9e
commit bb9f92b9b1
8 files changed
+90 -92

No files matched your search

+2 -4
View File
@@ -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;