X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fgduutil.cpp;h=4d02d2de04d25d324d65ebc42ba1f81ac6e096ef;hb=b70b9ec78f0ab1c3ed3b432de986159129a0e4ed;hp=2d4164d06789a20e3f0d38ace5e35c4d882427f7;hpb=2f00992d42d660fe3b9cebe30f383d7d5fd08c3b;p=metaproxy-moved-to-github.git diff --git a/src/gduutil.cpp b/src/gduutil.cpp index 2d4164d..4d02d2d 100644 --- a/src/gduutil.cpp +++ b/src/gduutil.cpp @@ -1,5 +1,5 @@ -/* $Id: gduutil.cpp,v 1.15 2006-10-04 14:04:00 marc Exp $ - Copyright (c) 2005-2006, Index Data. +/* $Id: gduutil.cpp,v 1.17 2007-01-25 14:05:54 adam Exp $ + Copyright (c) 2005-2007, Index Data. See the LICENSE file for details */ @@ -237,8 +237,10 @@ std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu) os << " " <<(oid_getentbyoid(pr->preferredRecordSyntax))->desc; else os << " -"; - if (pr->recordComposition) - os << " " << mp_util::record_composition_to_esn(pr->recordComposition); + const char * msg = 0; + if (pr->recordComposition + && (msg = mp_util::record_composition_to_esn(pr->recordComposition))) + os << " " << msg; else os << " -"; }