From ac40680ea2f6b32a3c451db1b606524e86a347dd Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 19 Nov 2010 12:35:06 +0100 Subject: 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 --- src/object.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/object.cpp') 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; -- cgit v1.2.3