1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-05 14:25:16 +02:00

Assign `func' just once in Ltest-nocalloc glibc case

This commit is contained in:
Tommi Rantala 2012-09-21 09:31:23 +03:00
parent 65f936402d
commit 6456da2dc1

View file

@ -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");