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.
This commit is contained in:
Andreas Sandberg
2015-06-09 09:21:14 -04:00
parent a9cad92011
commit 737e5da7f6

View File

@@ -67,6 +67,7 @@ CircleBuf::flush()
{
_start = 0;
_stop = 0;
_size = 0;
_rollover = false;
}