ref: 450ee3a7744844ee7ef7d1aa4964fcf7e017a4fd
parent: 61529ef0b56da740258bba1e2b7025501c9f7d7d
author: mkf <mkf@cloud9p.org>
date: Wed Jun 5 16:08:13 EDT 2024
srv: don't use a empty list, (old one somehow got lost)
--- a/srv5.c
+++ b/srv5.c
@@ -560,7 +560,6 @@
return atoi(opts);
}
-
Client*
newclient(char *in, int fd)
{
@@ -598,8 +597,12 @@
void
makematch(Client *c)
{
- Client *head = clients.l->data;
-
+ Client *head;
+
+ if(clients.l == nil)
+ clients.l == llnew();
+
+ head = clients.l->data;
if(head == nil || c->side == head->side)
{
if(c->side == PRandom)