mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-16 18:21:41 +01:00
Assign `func' just once in Ltest-nocalloc glibc case
This commit is contained in:
parent
65f936402d
commit
6456da2dc1
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@ calloc(size_t n, size_t s)
|
||||||
causes infinite recursion. Instead, we simply use it by its other
|
causes infinite recursion. Instead, we simply use it by its other
|
||||||
name. */
|
name. */
|
||||||
extern void *__libc_calloc(size_t, size_t);
|
extern void *__libc_calloc(size_t, size_t);
|
||||||
|
if (!func)
|
||||||
func = &__libc_calloc;
|
func = &__libc_calloc;
|
||||||
#else
|
#else
|
||||||
if(!func)
|
if(!func)
|
||||||
|
|
Loading…
Add table
Reference in a new issue