From 21b0c0b4f7896facbfcaf10c8eb777e72a505a45 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 23 Oct 2010 13:49:13 +0200 Subject: 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 --- src/object.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/object.cpp') diff --git a/src/object.cpp b/src/object.cpp index 324450f..c8e2355 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -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; -- cgit v1.2.3