2004-07-12 Marco Gerards <metgerards@student.han.nl>
* normal/arg.c (grub_arg_parse): Correct error handling after reallocating the argumentlist (check if `argl' is not null instead of checking if `args' is not null). * kern/mm.c (grub_realloc): Return the same pointer when using the same region, instead of returning the header address.
This commit is contained in:
parent
e15199cb7b
commit
5a9e354626
3 changed files with 10 additions and 2 deletions
|
@ -335,7 +335,7 @@ grub_realloc (void *ptr, grub_size_t size)
|
|||
get_header_from_pointer (ptr, &p, &r);
|
||||
|
||||
if (p->size >= n)
|
||||
return p;
|
||||
return ptr;
|
||||
|
||||
q = grub_malloc (size);
|
||||
if (! q)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue