quick fix of chained list loop
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user