summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-11-19 12:35:06 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-11-19 12:35:06 +0100
commitac40680ea2f6b32a3c451db1b606524e86a347dd (patch)
tree11a5732b8a46b48495b0c852b9d3af6c0ac2c41e /src
parentedf7c18d79b195001d7ed7d05ac30a4d7a64bce1 (diff)
Problem with blob_t initialisation fixed.
HP's version of STL doesn't allow for initialisation of basic_string (blob_t) using NULL pointer, while SGI's implementation is OK with that. Fixed. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r--src/object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 3e3ddec..dd8fc24 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -81,8 +81,9 @@ void zmq::object_t::process_command (command_t &cmd_)
case command_t::attach:
process_attach (cmd_.args.attach.engine,
+ cmd_.args.attach.peer_identity ?
blob_t (cmd_.args.attach.peer_identity,
- cmd_.args.attach.peer_identity_size));
+ cmd_.args.attach.peer_identity_size) : blob_t ());
process_seqnum ();
break;