]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: sockpair: silence a build warning at -Wextra
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Sep 2018 09:39:39 +0000 (11:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Sep 2018 09:42:15 +0000 (11:42 +0200)
commit7d7ab43a33f86e39fa3ce232e84235c9ed590445
tree634354e9abca9b5f3291c27a11551c5b023f986d
parent1e582e5e5cb7fca97c2d157e2c5057e0814ba90f
BUILD: sockpair: silence a build warning at -Wextra

An invalid null-deref warning is emitted because cmsg is not checked,
though it definitely is valid given the test performed 10 lines above,
but the compiler cannot necessarily guess this. Adding a null test to
the problematic condition is enough to get rid of it and cheap enough.
src/proto_sockpair.c