From 0781fc4caffe7858d5677c0168b67a2851765162 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 31 Jan 2025 14:07:12 +0100 Subject: [PATCH] fixed uninitialized variable --- src/chat/misc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index 50376cf..b49f92f 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -527,6 +527,7 @@ void *why2_communicate_thread(void *arg) why2_bool invalid_username = 1; why2_bool exiting = 0; char *decoded_buffer = NULL; + char *decoded_code_buffer = NULL; char *username; int usernames_n = 0; struct json_object *json = json_tokener_parse("{}"); @@ -687,8 +688,6 @@ void *why2_communicate_thread(void *arg) why2_deallocate(username); why2_toml_read_free(server_username); - char *decoded_code_buffer = NULL; - while (!(exiting || force_exiting)) //KEEP COMMUNICATION ALIVE FOR 5 MINUTES [RESET TIMER AT MESSAGE SENT] { if ((raw = read_user(connection, &raw_ptr)) == NULL) break; //READ