diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 02:08:21 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-29 20:03:26 +0200 |
commit | f9bff3be9ebff9b0edf27b609e1572388d2b9f16 (patch) | |
tree | d449dcb506361a1fdcf5e055b4543a6f86e9356f /bgpd/bgp_community.c | |
parent | lib: use static storage for vty_cwd (diff) | |
download | frr-f9bff3be9ebff9b0edf27b609e1572388d2b9f16.tar.xz frr-f9bff3be9ebff9b0edf27b609e1572388d2b9f16.zip |
bgpd: use XCALLOC to allocate string buf
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_community.c')
-rw-r--r-- | bgpd/bgp_community.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c index 6270a4dd4..6fc52ff9e 100644 --- a/bgpd/bgp_community.c +++ b/bgpd/bgp_community.c @@ -296,7 +296,7 @@ static void set_community_string(struct community *com, bool make_json) } /* Allocate memory. */ - str = XMALLOC(MTYPE_COMMUNITY_STR, len); + str = XCALLOC(MTYPE_COMMUNITY_STR, len); first = 1; /* Fill in string. */ |