commit 91ef5287711ea61ef19fec598b372ba14c74e344 parent 91e673efade0f57c459069fd7a08e66fc952fa8b Author: Anselm R. Garbe <garbeam@wmii.de> Date: Wed, 25 Jan 2006 17:08:19 +0200 fixed list bug Diffstat:
M | ii.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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); }