commit 84e869e: [Minor] Initialise variable

Vsevolod Stakhov vsevolod at rspamd.com
Sat Jul 2 13:42:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-07-02 14:35:53 +0100
URL: https://github.com/rspamd/rspamd/commit/84e869eb4b74363b86c1da364e7063a82bc9375b (HEAD -> master)

[Minor] Initialise variable

---
 src/lua/lua_tcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index e839aba24..6391e4e11 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -1487,7 +1487,7 @@ lua_tcp_request (lua_State *L)
 	struct rspamd_task *task = NULL;
 	struct rspamd_config *cfg = NULL;
 	struct iovec *iov = NULL;
-	struct upstream *up;
+	struct upstream *up = NULL;
 	guint niov = 0, total_out;
 	guint64 h;
 	gdouble timeout = default_tcp_timeout;


More information about the Commits mailing list