ircd: Zero out the global_client_list

Otherwise we unconditionally add "me" to it twice in some unit tests,
which results in a loop in the list.
This commit is contained in:
Simon Arlott 2019-09-15 10:21:49 +01:00
parent 0e5b57c40b
commit e89a399f94
No known key found for this signature in database
GPG key ID: 49BFFEEFD4C3ED53

View file

@ -679,6 +679,7 @@ charybdis_main(int argc, char * const argv[])
me.localClient = &meLocalUser;
/* Make sure all lists are zeroed */
memset(&global_client_list, 0, sizeof(global_client_list));
memset(&unknown_list, 0, sizeof(unknown_list));
memset(&lclient_list, 0, sizeof(lclient_list));
memset(&serv_list, 0, sizeof(serv_list));