fixed list bug

This commit is contained in:
Anselm R. Garbe 2006-01-25 17:08:19 +02:00
parent 91e673efad
commit 91ef528771

4
ii.c
View File

@ -126,8 +126,10 @@ static void add_channel(char *name)
} }
if(!channels) if(!channels)
channels = c; channels = c;
else else {
c->next = channels; c->next = channels;
channels = c;
}
c->fd = fd; c->fd = fd;
c->name = strdup(name); c->name = strdup(name);
} }