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.
This commit is contained in:
William Lallemand 2021-08-20 11:24:13 +02:00
parent 3b2533fa1a
commit b70203017b

View File

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