mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-20 22:31:33 +02:00
Problem: C4550 warning in testutil_security
Solution: explicitly compare function pointer against NULL
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user