summaryrefslogtreecommitdiffstats
path: root/src/libdect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdect.c')
-rw-r--r--src/libdect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libdect.c b/src/libdect.c
index b89eec5..f70100e 100644
--- a/src/libdect.c
+++ b/src/libdect.c
@@ -34,6 +34,8 @@ struct dect_handle *dect_alloc_handle(struct dect_ops *ops)
dh = ops->malloc(sizeof(*dh));
if (dh == NULL)
return NULL;
+ memset(dh, 0, sizeof(*dh));
+
dh->ops = ops;
init_list_head(&dh->links);
init_list_head(&dh->mme_list);