Problem: throwing version of new called

Solution: Pass (std::nothrow) as done in all other places.
This commit is contained in:
Thomas Braun
2017-03-27 22:47:42 +02:00
parent 634c69abd3
commit 19f30f7926
4 changed files with 10 additions and 7 deletions

View File

@@ -415,7 +415,8 @@ void zmq::norm_engine_t::recv_data(NormObjectHandle object)
if (NULL == rxState)
{
// This is a new stream, so create rxState with zmq decoder, etc
rxState = new NormRxStreamState(object, options.maxmsgsize);
rxState = new (std::nothrow) NormRxStreamState(object, options.maxmsgsize);
if (!rxState->Init())
{
errno_assert(false);