* grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set

in if.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-12 19:08:55 +01:00
parent db5fc59616
commit 59bfe502c9
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
in if.
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move

View file

@ -189,10 +189,13 @@ grub_xnu_writetree_toheap_real (void *curptr,
/* And then the keys. Recursively use this function. */
for (cur = start; cur; cur = cur->next)
if (cur->datasize == -1)
if (!(curptr = grub_xnu_writetree_toheap_real (curptr,
{
curptr = grub_xnu_writetree_toheap_real (curptr,
cur->first_child,
cur->name)))
cur->name);
if (!curptr)
return 0;
}
return curptr;
}