summaryrefslogtreecommitdiffstats
path: root/elapi/providers/file/file_fmt_csv.c
diff options
context:
space:
mode:
Diffstat (limited to 'elapi/providers/file/file_fmt_csv.c')
-rw-r--r--elapi/providers/file/file_fmt_csv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elapi/providers/file/file_fmt_csv.c b/elapi/providers/file/file_fmt_csv.c
index a811113..e55d0b1 100644
--- a/elapi/providers/file/file_fmt_csv.c
+++ b/elapi/providers/file/file_fmt_csv.c
@@ -275,7 +275,7 @@ int file_get_csv_cfg(void **storage,
TRACE_FLOW_STRING("file_get_csv_cfg", "Entry");
/* Allocate memory for configuration */
- cfg = (struct file_csv_cfg *)malloc(sizeof(struct file_csv_cfg));
+ cfg = (struct file_csv_cfg *) calloc(1, sizeof(struct file_csv_cfg));
if (cfg == NULL) {
TRACE_ERROR_NUMBER("Failed to allocate storage for CSV configuration", ENOMEM);
return ENOMEM;