Merge pull request #480 from vperron/master

Tiny fix
This commit is contained in:
Martin Hurton 2012-11-30 13:41:54 -08:00
commit 013a99daab

View File

@ -149,7 +149,7 @@ namespace zmq
bool stalled ()
{
// Check whether there was decoding error.
if (unlikely (static_cast <T*> (this)->next == NULL))
if (unlikely (!(static_cast <T*> (this)->next)))
return false;
while (!to_read) {