diff --git a/src/decoder.hpp b/src/decoder.hpp index 814c3197..4ed2eb31 100644 --- a/src/decoder.hpp +++ b/src/decoder.hpp @@ -149,7 +149,7 @@ namespace zmq bool stalled () { // Check whether there was decoding error. - if (unlikely (static_cast (this)->next == NULL)) + if (unlikely (!(static_cast (this)->next))) return false; while (!to_read) {