base: Reset CircleBuf size on flush()
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 9 Jun 2015 13:21:14 +0000 (09:21 -0400)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 9 Jun 2015 13:21:14 +0000 (09:21 -0400)
commit737e5da7f6a4716803e489f473fa4d58579fbd58
tree248964ce0698cf00ba66090f6a7dec6c754e0d91
parenta9cad92011560fe03c7d6ffde6d679cc84e48816
base: Reset CircleBuf size on flush()

The flush() method in CircleBuf resets the state of the circular
buffer, but fails to set size to zero. This obviously confuses code
that tries to determine the amount of data in the buffer. Set the size
to zero on flush.
src/base/circlebuf.cc