summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-11-26 02:19:27 -0500
committerTest_User <hax@andrewyu.org>2023-11-26 02:19:27 -0500
commit16049194444f9acc27b9ed6b8de6b39651c5a8fd (patch)
tree968f2a253b8093b454f58a5491a62e2515161941 /main.c
parentf79a5dbfbadf78baf5683eede02a8454e403f58e (diff)
downloadcoupserv-16049194444f9acc27b9ed6b8de6b39651c5a8fd.tar.gz
coupserv-16049194444f9acc27b9ed6b8de6b39651c5a8fd.zip
Fix memory errors, disable spam command
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6aff2de..a5401b5 100644
--- a/main.c
+++ b/main.c
@@ -45,7 +45,6 @@ void *client_loop(void *ign) {
pthread_mutex_lock(&send_lock);
listen(client_listen_fd, 0);
client_connected = 0;
- client_nick.data = malloc(0);
while (1) {
char data[512];
pthread_mutex_unlock(&send_lock); // TODO: proper locking, this works for now but is certainly inefficient