The buffer is accessed outside of the function defining it, so make it static.
Signed-off-by: Phil Sutter <p...@nwl.cc> --- ip/ipaddress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 4d37c5e045071..3c9decb51b412 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -1488,7 +1488,7 @@ static void ipaddr_filter(struct nlmsg_chain *linfo, struct nlmsg_chain *ainfo) static int ipaddr_flush(void) { int round = 0; - char flushb[4096-512]; + static char flushb[4096-512]; filter.flushb = flushb; filter.flushp = 0; -- 2.13.1