* grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
in if.
This commit is contained in:
parent
db5fc59616
commit
59bfe502c9
2 changed files with 12 additions and 4 deletions
|
@ -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>
|
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
|
* grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
|
||||||
|
|
|
@ -189,10 +189,13 @@ grub_xnu_writetree_toheap_real (void *curptr,
|
||||||
/* And then the keys. Recursively use this function. */
|
/* And then the keys. Recursively use this function. */
|
||||||
for (cur = start; cur; cur = cur->next)
|
for (cur = start; cur; cur = cur->next)
|
||||||
if (cur->datasize == -1)
|
if (cur->datasize == -1)
|
||||||
if (!(curptr = grub_xnu_writetree_toheap_real (curptr,
|
{
|
||||||
cur->first_child,
|
curptr = grub_xnu_writetree_toheap_real (curptr,
|
||||||
cur->name)))
|
cur->first_child,
|
||||||
return 0;
|
cur->name);
|
||||||
|
if (!curptr)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return curptr;
|
return curptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue