From efa1d24047ffa04516bda009a51866180bbe4c49 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 31 Mar 2023 18:12:56 +0200 Subject: [PATCH] fixed invalid return in send_to_all --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index d6b1e79..5a2c6a1 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -146,7 +146,7 @@ void *send_to_all(void *json) //PARSE struct json_object *json_obj = json_tokener_parse((char*) json); - if (json_obj == NULL) return; //EXIT IF INVALID SYNTAX WAS SENT + if (json_obj == NULL) return NULL; //EXIT IF INVALID SYNTAX WAS SENT do //SEND TO ALL CONNECTIONS {