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