Problem: udp_engine_t fd cannot be init to NULL

Solution: initialize to -1, since fd is a file descriptor (int).
This commit is contained in:
Luca Boccassi 2016-02-21 23:47:10 +00:00
parent 1046f35930
commit c84a52b11e

View File

@ -48,7 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
zmq::udp_engine_t::udp_engine_t() : zmq::udp_engine_t::udp_engine_t() :
plugged (false), plugged (false),
fd(NULL), fd(-1),
session(NULL), session(NULL),
handle(NULL), handle(NULL),
address(nullptr), address(nullptr),