mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
closes #741 Old versions of the gnu libc uses calloc to allocate dymanic memory when some error occurs in dlsym. This results in a segfault as natives calloc wrapper has not been initialized yet. As this is a circular dependency and the libc can cope with this, we just return NULL from the calloc wrapper and hope for the best. Recent libc versions use a static buffer instead.