mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-22 19:43:42 +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,7 +47,8 @@ calloc(size_t n, size_t s)
|
|||
causes infinite recursion. Instead, we simply use it by its other
|
||||
name. */
|
||||
extern void *__libc_calloc(size_t, size_t);
|
||||
func = &__libc_calloc;
|
||||
if (!func)
|
||||
func = &__libc_calloc;
|
||||
#else
|
||||
if(!func)
|
||||
func = dlsym(RTLD_NEXT, "calloc");
|
||||
|
|
Loading…
Reference in a new issue