Problem: UWP build fails

Solution: initialize local variable in all cases to false positive
compiler warning
This commit is contained in:
Luca Boccassi 2019-12-28 19:21:57 +01:00
parent 21f763c872
commit 3832bd6b11

View File

@ -148,8 +148,11 @@ void zmq::ws_engine_t::start_ws_handshake ()
else if (_options.mechanism == ZMQ_CURVE)
protocol = "ZWS2.0/CURVE";
#endif
else
else {
// Avoid unitialized variable error breaking UWP build
protocol = "";
assert (false);
}
unsigned char nonce[16];
int *p = reinterpret_cast<int *> (nonce);