From 91ef5287711ea61ef19fec598b372ba14c74e344 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Wed, 25 Jan 2006 17:08:19 +0200 Subject: [PATCH] fixed list bug --- ii.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ii.c b/ii.c index 69ecb2d..bef731d 100644 --- a/ii.c +++ b/ii.c @@ -126,8 +126,10 @@ static void add_channel(char *name) } if(!channels) channels = c; - else + else { c->next = channels; + channels = c; + } c->fd = fd; c->name = strdup(name); }