SunStudio fixed.

With SunStudio's implementation of STL basic_string constructor
doesn't accept NULL as a parameter even though size of string
is set to zero. Fixed.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2010-10-23 13:49:13 +02:00
parent 710615cdab
commit 21b0c0b4f7

View File

@@ -85,8 +85,8 @@ void zmq::object_t::process_command (command_t &cmd_)
case command_t::bind:
process_bind (cmd_.args.bind.in_pipe, cmd_.args.bind.out_pipe,
blob_t (cmd_.args.bind.peer_identity,
cmd_.args.bind.peer_identity_size));
cmd_.args.bind.peer_identity ? blob_t (cmd_.args.bind.peer_identity,
cmd_.args.bind.peer_identity_size) : blob_t ());
process_seqnum ();
break;