hirc

IRC client
Log | Files | Refs

commit 8adbd333b1628c6ee2892629fbedded1c236ba32
parent b850f3bd590e47850abc62a69370cf9cb65b660a
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 22 Dec 2021 15:51:36 +0000

s/serv.c: assign head pointer correctly in schedule_pull

Diffstat:
Msrc/serv.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/serv.c b/src/serv.c @@ -475,8 +475,8 @@ schedule_pull(struct Server *server, char *tmsg) { if (p->prev) p->prev->next = p->next; if (p->next) p->next->prev = p->prev; - if (!p->prev && !p->next) - server->schedule = NULL; + if (!p->prev) + server->schedule = p->next; free(p); return ret;