]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MINOR: stream: avoid a build warning with threads disabled
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Feb 2019 09:59:32 +0000 (10:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Feb 2019 09:59:32 +0000 (10:59 +0100)
commit1ef724e2169eaff7f0272278c3fba9b34d5c7f78
treef3753a35976c9fa9c8e46040eecb7ce881d869dd
parent09c4bab41188c13e7a9227f8baaff230ebdd0875
BUILD/MINOR: stream: avoid a build warning with threads disabled

gcc 6+ complains about a possible null-deref here due to the test in
objt_server() :

       if (objt_server(s->target))
           HA_ATOMIC_ADD(&objt_server(s->target)->counters.retries, 1);

Let's simply change it to __objt_server(). This can be backported to
1.9 and 1.8.
src/stream.c