From b70203017b32a02ddc3113410c9cb6bf62765810 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 20 Aug 2021 11:24:13 +0200 Subject: [PATCH] BUG/MINOR: httpclient: fix uninitialized sl variable Reported by coverity in ticket #1355 CID 1461505: Memory - illegal accesses (UNINIT) Using uninitialized value "sl". Fix the problem by initializing sl to NULL. --- src/http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_client.c b/src/http_client.c index 6142c4857..7e950f96c 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -437,7 +437,7 @@ static void httpclient_applet_io_handler(struct appctx *appctx) struct channel *res = &s->res; struct htx_blk *blk = NULL; struct htx *htx; - struct htx_sl *sl; + struct htx_sl *sl = NULL; int32_t pos; uint32_t hdr_num;