X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fgduutil.cpp;h=b7780e22c9546b112b220b395441e144444699c5;hb=bb8bde1fc4b4d4adfb508517f3e87d3e868275d2;hp=2d4164d06789a20e3f0d38ace5e35c4d882427f7;hpb=2f00992d42d660fe3b9cebe30f383d7d5fd08c3b;p=metaproxy-moved-to-github.git diff --git a/src/gduutil.cpp b/src/gduutil.cpp index 2d4164d..b7780e2 100644 --- a/src/gduutil.cpp +++ b/src/gduutil.cpp @@ -1,4 +1,4 @@ -/* $Id: gduutil.cpp,v 1.15 2006-10-04 14:04:00 marc Exp $ +/* $Id: gduutil.cpp,v 1.16 2006-10-05 12:17:24 marc Exp $ Copyright (c) 2005-2006, 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 << " -"; }