use taloc_zero() rather than talloc() and explisit memset()
diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c
index 4a73930..b07aa31 100644
--- a/openbsc/src/abis_nm.c
+++ b/openbsc/src/abis_nm.c
@@ -2079,12 +2079,11 @@
if (rc < 2)
continue;
- fle = talloc(tall_fle_ctx, struct file_list_entry);
+ fle = talloc_zero(tall_fle_ctx, struct file_list_entry);
if (!fle) {
rc = -ENOMEM;
goto out;
}
- memset(fle, 0, sizeof(*fle));
/* construct new filename */
strncpy(dir, bs11_sw->swl_fname, sizeof(dir));