git clone https://orangeshoelaces.net/git/ii.git
Author: Anselm R. Garbe on 01/25/2006
Committer: Anselm R. Garbe on 01/25/2006
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);
}