From 13ed9faecd4931bc766dbec19a6eb55b9b2fbe1a Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 25 Sep 2019 21:21:57 +0200 Subject: [PATCH] BUG/MINOR: mux-fcgi: silence a gcc warning about null dereference Silence an impossible warning that gcc reports about a NULL dereference. --- src/mux_fcgi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index 267fdf190..8094345c1 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -3248,6 +3248,7 @@ static size_t fcgi_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t co while (fstrm->state < FCGI_SS_HLOC && !(fconn->flags & FCGI_SF_BLK_ANY) && count && !htx_is_empty(htx)) { blk = htx_get_head_blk(htx); + ALREADY_CHECKED(blk); bsize = htx_get_blksz(blk); switch (htx_get_blk_type(blk)) {