Permalink
Browse files

Fix InpuByteStreamSplitter in debug mode.

Test Plan: stream_test, exception_tracer_test

Reviewed By: soren@fb.com

FB internal diff: D569476
  • Loading branch information...
1 parent ad8e104 commit 8a64dcbdae49bce3ba56bb78c67562549bc9cf8c @tudor tudor committed with jdelong Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 folly/experimental/io/Stream-inl.h
@@ -34,7 +34,7 @@ InputByteStreamSplitter<Stream>::InputByteStreamSplitter(
template <class Stream>
bool InputByteStreamSplitter<Stream>::operator()(ByteRange& chunk) {
- DCHECK_EQ(buffer_->length(), 0);
+ DCHECK(!buffer_ || buffer_->length() == 0);
chunk.clear();
if (rest_.empty()) {
if (done_) {

0 comments on commit 8a64dcb

Please sign in to comment.