1
0
Fork 0
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:
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 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");