summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_table.c b/bgpd/bgp_table.c
index 376172a6f..4ed8c7c59 100644
--- a/bgpd/bgp_table.c
+++ b/bgpd/bgp_table.c
@@ -88,7 +88,7 @@ struct bgp_dest *bgp_dest_lock_node(struct bgp_dest *dest)
const char *bgp_dest_get_prefix_str(struct bgp_dest *dest)
{
const struct prefix *p = NULL;
- char str[PREFIX_STRLEN] = {0};
+ static char str[PREFIX_STRLEN] = {0};
p = bgp_dest_get_prefix(dest);
if (p)