Use stdlib's calloc for compaiblity

This commit is contained in:
David Sidrane 2015-05-14 16:44:55 -10:00
parent dc4d5619ea
commit 8e9fdc6147
1 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@
#include <debug.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <systemlib/err.h>
@ -105,7 +106,7 @@ get_param_info_count(void)
if (!param_changed_storage)
{
size_param_changed_storage_bytes = (param_info_count / bits_per_allocation_unit ) + 1;
param_changed_storage = zalloc(size_param_changed_storage_bytes);
param_changed_storage = calloc(size_param_changed_storage_bytes, 1);
}
return param_info_count;
}