This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 7.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 55e44134e117b9743b7cc57de59e65b97653aa5c Author: Masakazu Kitajo <[email protected]> AuthorDate: Thu Jun 7 14:42:02 2018 +0200 Initialize _sendMsgIOV correctly. The error was: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size] --- proxy/ICP.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/ICP.cc b/proxy/ICP.cc index d37ee2c..09d0e33 100644 --- a/proxy/ICP.cc +++ b/proxy/ICP.cc @@ -1001,7 +1001,7 @@ ICPRequestCont::ICPRequestCont(ICPProcessor *pr, Continuation *c, URL *u) _act = c; memset((void *)&_ICPmsg, 0, sizeof(_ICPmsg)); memset((void *)&_sendMsgHdr, 0, sizeof(_sendMsgHdr)); - memset((void *)&_sendMsgIOV, 0, sizeof(_sendMsgIOV[MSG_IOVECS])); + memset((void *)&_sendMsgIOV, 0, sizeof(_sendMsgIOV)); if (c) { this->mutex = c->mutex; -- To stop receiving notification emails like this one, please contact [email protected].
