]> git.ipfire.org Git - thirdparty/squid.git/commit
HTCP: fix memory initialization errors
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 21 Nov 2014 18:09:06 +0000 (10:09 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 21 Nov 2014 18:09:06 +0000 (10:09 -0800)
commit74ab741c4540f2995d4d78dbf7944ac7bd722fd2
treecd1439925b2f4a2bd28a0c07938d570f9dc43d8f
parentffac7e44735cdadc21fab5f9e4bab9aae36de92b
HTCP: fix memory initialization errors

memset() used to initialize HTCP objects made sense when they were
structs. But now they are classes proper constructors need to be used
to avoid memset() erasing vtable and other important areas. It also
helps to reduce code and improve performance during init a tiny bit.

memset() errors found by Clang 3.5
src/htcp.cc