mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 07:37:38 +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
|
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);
|
||||||
func = &__libc_calloc;
|
if (!func)
|
||||||
|
func = &__libc_calloc;
|
||||||
#else
|
#else
|
||||||
if(!func)
|
if(!func)
|
||||||
func = dlsym(RTLD_NEXT, "calloc");
|
func = dlsym(RTLD_NEXT, "calloc");
|
||||||
|
|
Loading…
Reference in a new issue