From: William Lallemand Date: Wed, 25 Sep 2019 19:21:57 +0000 (+0200) Subject: BUG/MINOR: mux-fcgi: silence a gcc warning about null dereference X-Git-Tag: v2.1-dev2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13ed9faecd4931bc766dbec19a6eb55b9b2fbe1a;p=thirdparty%2Fhaproxy.git BUG/MINOR: mux-fcgi: silence a gcc warning about null dereference Silence an impossible warning that gcc reports about a NULL dereference. --- diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index 267fdf190f..8094345c1f 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)) {