]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ncbuf: adjust ncb_data with NCBUF_NULL
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 31 May 2022 09:44:25 +0000 (11:44 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 31 May 2022 12:31:48 +0000 (14:31 +0200)
commit1194db24bc05e202e5ee83292880c040a9053b06
treeca4b37a3ac90204690a9a3c15d9b156f4c50db2c
parentcd50e7673f7faba724a346fef3ba646b1b22ad66
MINOR: ncbuf: adjust ncb_data with NCBUF_NULL

Replace ncb_blk_is_null() by ncb_is_null() as a prelude to ncb_data().
The result is the same : the function will return 0 if the buffer is
uninitialized. However, it is clearer to directly call ncb_is_null() to
reflect this.

There is no functional change with this commit.
src/ncbuf.c