aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-01-01 17:24:57 +0100
committerAlexander Couzens <lynxis@fe80.eu>2021-01-01 17:24:57 +0100
commitf73753543266917e1b96e81d65ebedc5e9d8792f (patch)
tree0c40b58d754d4564059187e0d5afa6e5940c845f
parentfdea03b40859057fb85014ace8cdb65e57c2b373 (diff)
gprs_ns2: use zero initialized memory for vty_binds
-rw-r--r--src/gb/gprs_ns2_vty2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_vty2.c b/src/gb/gprs_ns2_vty2.c
index e8738c17..41daa742 100644
--- a/src/gb/gprs_ns2_vty2.c
+++ b/src/gb/gprs_ns2_vty2.c
@@ -108,7 +108,7 @@ static struct vty_bind *vty_bind_by_name(const char *name)
static struct vty_bind *vty_bind_alloc(const char *name)
{
- struct vty_bind *vbind = talloc(vty_nsi, struct vty_bind);
+ struct vty_bind *vbind = talloc_zero(vty_nsi, struct vty_bind);
if (!vbind)
return NULL;