Commit 28631d1c authored by Simon Giesecke's avatar Simon Giesecke

Problem: C4550 warning in testutil_security

Solution: explicitly compare function pointer against NULL
parent b0c3a42e
...@@ -561,7 +561,7 @@ void setup_context_and_server_side ( ...@@ -561,7 +561,7 @@ void setup_context_and_server_side (
rc = zmq_setsockopt (*zap_control, ZMQ_LINGER, &linger, sizeof (linger)); rc = zmq_setsockopt (*zap_control, ZMQ_LINGER, &linger, sizeof (linger));
assert (rc == 0); assert (rc == 0);
if (zap_handler_) { if (zap_handler_ != NULL) {
*zap_thread = zmq_threadstart (zap_handler_, *ctx); *zap_thread = zmq_threadstart (zap_handler_, *ctx);
char *buf = s_recv (*zap_control); char *buf = s_recv (*zap_control);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment