diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2021-01-01 17:24:57 +0100 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2021-01-01 17:24:57 +0100 |
commit | f73753543266917e1b96e81d65ebedc5e9d8792f (patch) | |
tree | 0c40b58d754d4564059187e0d5afa6e5940c845f | |
parent | fdea03b40859057fb85014ace8cdb65e57c2b373 (diff) |
gprs_ns2: use zero initialized memory for vty_binds
Change-Id: I5635d98c52948fddcc375e1be9b1cd04aa32bc3c
-rw-r--r-- | src/gb/gprs_ns2_vty2.c | 2 |
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; |