1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

base: use calloc

Make zalloc a wrapper over calloc
This commit is contained in:
Zdenek Kabelac 2018-11-27 12:12:51 +01:00
parent cb04b84c79
commit 8bb5dd5430

View File

@ -20,10 +20,7 @@
static inline void *zalloc(size_t len)
{
void *ptr = malloc(len);
if (ptr)
memset(ptr, 0, len);
return ptr;
return calloc(1, len);
}
//----------------------------------------------------------------