From 17081d1ed686e0717a545582dd04e3377f16a6e6 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 4 Feb 2008 09:32:43 +0100 Subject: [PATCH] dccp_senc.d: No need to use static variable in dccp_info(). --- dccp_send.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dccp_send.c b/dccp_send.c index c68f5777..c94e1624 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -104,11 +104,10 @@ static void dccp_shutdown_clients(void) static char *dccp_info(void) { - static char *buf; + char *buf; int num_clients = 0; struct sender_client *sc, *tmp; - free(buf); list_for_each_entry_safe(sc, tmp, &clients, node) num_clients++; buf = make_message("dccp connected clients: %d\n", num_clients); -- 2.39.2