use taloc_zero() rather than talloc() and explisit memset()
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index 217da7e..0703e93 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -228,8 +228,7 @@
}
DEBUGP(DPAG, "Start paging on bts %d.\n", bts->nr);
- req = talloc(tall_paging_ctx, struct gsm_paging_request);
- memset(req, 0, sizeof(*req));
+ req = talloc_zero(tall_paging_ctx, struct gsm_paging_request);
req->subscr = subscr_get(subscr);
req->bts = bts;
req->chan_type = type;