mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 12:18:04 +01:00
Problem: Potentially unitialized variable in #3508
Solution: Initialized it
This commit is contained in:
@@ -155,7 +155,7 @@ void test_monitor_versioned_typed_basic (bind_function_t bind_function_,
|
|||||||
server, "inproc://monitor-server", ZMQ_EVENT_ALL_V2, 2, type_));
|
server, "inproc://monitor-server", ZMQ_EVENT_ALL_V2, 2, type_));
|
||||||
|
|
||||||
// Choose the appropriate consumer socket type.
|
// Choose the appropriate consumer socket type.
|
||||||
int mon_type;
|
int mon_type = ZMQ_PAIR;
|
||||||
switch (type_) {
|
switch (type_) {
|
||||||
case ZMQ_PAIR:
|
case ZMQ_PAIR:
|
||||||
mon_type = ZMQ_PAIR;
|
mon_type = ZMQ_PAIR;
|
||||||
|
|||||||
Reference in New Issue
Block a user