]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: stats: shut up a wrong null-deref warning from gcc 9.2
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Jan 2020 10:47:13 +0000 (11:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Jan 2020 10:49:02 +0000 (11:49 +0100)
commit027d206b57bec59397eb6fb23f8ff4e3a2edb2e1
treebd8db6abdf42466c5f0a4aebce06e3c9a0d85826
parent79fd577ac148f78fe72154c26eae0edbd012bf46
CLEANUP: stats: shut up a wrong null-deref warning from gcc 9.2

As reported in bug #447, gcc 9.2 invents impossible code paths and then
complains that we don't check for our pointers to be NULL... This code
path is not critical, better add the test to shut it up than try to
help it being less creative.

This code hasn't changed for a while, so it could help distros to
backport this to older releases.
src/stats.c