eo: force zeroing memory on non Linux system.
authorCedric BAIL <c.bail@partner.samsung.com>
Mon, 9 Jun 2014 17:55:00 +0000 (19:55 +0200)
committerCedric BAIL <c.bail@partner.samsung.com>
Mon, 9 Jun 2014 17:55:40 +0000 (19:55 +0200)
@fix

src/lib/eo/eo.c

index 8a14021..ad4cd60 100644 (file)
@@ -306,7 +306,7 @@ _eo_call_stack_mem_alloc(size_t maxsize)
    return ptr;
 #else
    //in regular cases just use malloc
-   return malloc(maxsize);
+   return calloc(1, maxsize);
 #endif   
 }