mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
* grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
in if.
This commit is contained in:
1 parent
db5fc59616
commit
59bfe502c9
2 files changed
+12
-4
No files matched your search
@@ -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,
|
||||
cur->first_child,
|
||||
cur->name)))
|
||||
return 0;
|
||||
{
|
||||
curptr = grub_xnu_writetree_toheap_real (curptr,
|
||||
cur->first_child,
|
||||
cur->name);
|
||||
if (!curptr)
|
||||
return 0;
|
||||
}
|
||||
return curptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user