diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-11-19 12:35:06 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-11-19 12:35:06 +0100 |
commit | ac40680ea2f6b32a3c451db1b606524e86a347dd (patch) | |
tree | 11a5732b8a46b48495b0c852b9d3af6c0ac2c41e | |
parent | edf7c18d79b195001d7ed7d05ac30a4d7a64bce1 (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>
-rw-r--r-- | src/object.cpp | 3 |
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; |