From 6c68472f10828815e6779005df5d55f5b73fdcf0 Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 21 Jan 2025 05:39:33 +0200 Subject: [PATCH] irc.c: fix goto crossing initialization of res --- src/irc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irc.c b/src/irc.c index 7609d8a..de6a298 100644 --- a/src/irc.c +++ b/src/irc.c @@ -410,7 +410,8 @@ int processPacket(struct client_data *client, char *source, char *command, int a } client->saslbuf[client->saslbufLen] = '\0'; const char *username; - int res = -1; + int res; + res = -1; if (!client->saslexternal) { username = strchr(client->saslbuf, '\0')+1; if (username > client->saslbuf + client->saslbufLen) -- 2.56.0