From 91e673efade0f57c459069fd7a08e66fc952fa8b Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 23 Jan 2006 14:35:55 +0200 Subject: [PATCH] fix --- ii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ii.c b/ii.c index d25811e..69ecb2d 100644 --- a/ii.c +++ b/ii.c @@ -124,7 +124,7 @@ static void add_channel(char *name) perror("ii: cannot allocate memory"); exit(EXIT_FAILURE); } - if(channels) + if(!channels) channels = c; else c->next = channels;