mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 00:46:05 +01:00
Problem: C4550 warning in testutil_security
Solution: explicitly compare function pointer against NULL
This commit is contained in:
parent
b0c3a42ed2
commit
28631d1cd3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user