ii

git clone https://orangeshoelaces.net/git/ii.git

91ef5287711ea61ef19fec598b372ba14c74e344

Author: Anselm R. Garbe on 01/25/2006

Committer: Anselm R. Garbe on 01/25/2006

fixed list bug

Stats

ii.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Patch

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);
 }