]> git.kaiwu.me - haproxy.git/commit
BUILD: server: check->desc always exists
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Nov 2017 20:33:21 +0000 (21:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Nov 2017 20:33:21 +0000 (21:33 +0100)
commit358847f026f7ca69e0c341326da3c34d45ec27db
tree5031bec6f79c0fc2fb84af37885a2fcc39c2bfc3
parent1f0946711414fa90e71d9525f373e9819f10f9dc
BUILD: server: check->desc always exists

Clang reports this warning :

  src/server.c:872:14: warning: address of array 'check->desc' will
  always evaluate to 'true' [-Wpointer-bool-conversion]

Indeed, check->desc used to be a pointer to a dynamically allocated area
a long time ago and is now an array. Let's remove the useless test.
src/server.c