Problem: C4550 warning in testutil_security

Solution: explicitly compare function pointer against NULL
This commit is contained in:
Simon Giesecke 2018-05-14 18:46:48 +02:00
parent b0c3a42ed2
commit 28631d1cd3

View File

@ -561,7 +561,7 @@ void setup_context_and_server_side (
rc = zmq_setsockopt (*zap_control, ZMQ_LINGER, &linger, sizeof (linger));
assert (rc == 0);
if (zap_handler_) {
if (zap_handler_ != NULL) {
*zap_thread = zmq_threadstart (zap_handler_, *ctx);
char *buf = s_recv (*zap_control);