summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/imx/imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
index f37f151..4f18d90 100644
--- a/scripts/imx/imx.c
+++ b/scripts/imx/imx.c
@@ -310,7 +310,7 @@ static int do_hab(struct config_data *data, int argc, char *argv[])
if (!data->csf) {
data->csf_space = 0x10000;
- data->csf = malloc(data->csf_space + 1);
+ data->csf = calloc(data->csf_space + 1, 1);
if (!data->csf)
return -ENOMEM;
}