From c84a52b11e8abccdb1e9722366432f94118c3df9 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 21 Feb 2016 23:47:10 +0000 Subject: [PATCH] Problem: udp_engine_t fd cannot be init to NULL Solution: initialize to -1, since fd is a file descriptor (int). --- src/udp_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udp_engine.cpp b/src/udp_engine.cpp index 9cff8162..f18d0b63 100644 --- a/src/udp_engine.cpp +++ b/src/udp_engine.cpp @@ -48,7 +48,7 @@ along with this program. If not, see . zmq::udp_engine_t::udp_engine_t() : plugged (false), - fd(NULL), + fd(-1), session(NULL), handle(NULL), address(nullptr),