Add support for realloc (NULL, size) in relocators
This commit is contained in:
parent
bbd46b0966
commit
c442639fc0
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ PREFIX (realloc) (void *relocator, grub_size_t size)
|
|||
{
|
||||
char *playground;
|
||||
|
||||
if (!relocator)
|
||||
return PREFIX (alloc) (size);
|
||||
|
||||
playground = (char *) relocator - PRE_REGION_SIZE;
|
||||
|
||||
playground = grub_realloc (playground, size + MAX_OVERHEAD);
|
||||
|
|
Loading…
Reference in a new issue