fixed uninitialized variable

This commit is contained in:
Václav Šmejkal 2025-01-31 14:07:12 +01:00
parent a3c54207db
commit 0781fc4caf
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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