]> git.ipfire.org Git - thirdparty/squid.git/commit
When SBuf chop()s away everything, always clear the buffer.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 26 Jul 2015 18:16:34 +0000 (12:16 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 26 Jul 2015 18:16:34 +0000 (12:16 -0600)
commit80ec003619c64b73a5932d1015e2a4baf95a6266
tree66f11cc9c77c5889c3894f2e3ca2d58f2f973047
parent87f3b8f4c82714eb9e646b28b37c95f61a19a9f1
When SBuf chop()s away everything, always clear the buffer.

The old code was trying to make the clearance decision without
normalizing parameters first and missed most cases as the result.

In theory, clear()ing SBuf during chop() is just an optimization
that should have no effect on correct code functionality.
src/SBuf.cc