summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-10-23 13:49:13 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-10-23 13:49:13 +0200
commit21b0c0b4f7896facbfcaf10c8eb777e72a505a45 (patch)
treee1ddc4e27154cf901ef9ee194a30a4b035ef1212 /src
parent710615cdab8c8e500c259bb27df2af70f5ae8275 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/object.cpp4
1 files changed, 2 insertions, 2 deletions
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;