From 3ab73bc633574a2fa105fc2e6e2f767592bd11eb Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Mon, 5 Jan 2015 17:50:37 +0100 Subject: [PATCH] cpu/native: init _native_in_calloc explicitly --- cpu/native/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/native/syscalls.c b/cpu/native/syscalls.c index 8c2b84cd00..d4fdefdb9a 100644 --- a/cpu/native/syscalls.c +++ b/cpu/native/syscalls.c @@ -145,7 +145,7 @@ void free(void *ptr) _native_syscall_leave(); } -int _native_in_calloc; +int _native_in_calloc = 0; void *calloc(size_t nmemb, size_t size) { /* dynamically load calloc when it's needed - this is necessary to