quick fix of chained list loop

This commit is contained in:
asus
2023-02-23 22:11:53 +01:00
parent 3d74075a6a
commit 377ba175c4
2 changed files with 1 additions and 1 deletions

View File

@@ -105,7 +105,7 @@ void add_client(t_client *first_client, int fd, int id) {
first_client = new_client;
else {
client = first_client;
while (client)
while (client->next)
client = client->next;
client->next = new_client;
}