From 1bf6d78980fe77679c92d22b40b5d968e71d3299 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 18 Jun 2013 01:15:25 +0200 Subject: [PATCH] stream_wrap: remove bogus assert Libuv may provide a NULL buffer to the uv_read callback in case of an error, so with this assert we'd be using the api incorrectly. None of the current DoRead implementations rely on this constraint, either. --- src/stream_wrap.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index bcedeb8ab1c..886cf648edb 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -200,7 +200,6 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle, } } - assert(buf.base != NULL); wrap->callbacks_->DoRead(handle, nread, buf, pending); }