diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 00:08:21 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-29 18:03:26 +0000 | 
| commit | f9bff3be9ebff9b0edf27b609e1572388d2b9f16 (patch) | |
| tree | d449dcb506361a1fdcf5e055b4543a6f86e9356f /bgpd/bgp_community.c | |
| parent | daeb97e980ab7e28caf11a15deccc1d36a08042b (diff) | |
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 6270a4dd4c..6fc52ff9e0 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.  */  | 
