From: Adam Dickmeiss Date: Thu, 7 Sep 2006 12:12:21 +0000 (+0000) Subject: Fix NULL-reference due to diagnosticInformation being optional X-Git-Tag: METAPROXY.1.0.7~74 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=382317f3f6d92f61e89f8686f6429c53773fcbd0;p=metaproxy-moved-to-github.git Fix NULL-reference due to diagnosticInformation being optional --- diff --git a/src/gduutil.cpp b/src/gduutil.cpp index 67a9c6e..210989c 100644 --- a/src/gduutil.cpp +++ b/src/gduutil.cpp @@ -1,4 +1,4 @@ -/* $Id: gduutil.cpp,v 1.5 2006-08-31 12:55:54 marc Exp $ +/* $Id: gduutil.cpp,v 1.6 2006-09-07 12:12:21 adam Exp $ Copyright (c) 2005-2006, Index Data. See the LICENSE file for details @@ -429,7 +429,8 @@ std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu) os << "unknown"; break; } - os << " " << c->diagnosticInformation; + if (c->diagnosticInformation) + os << " " << c->diagnosticInformation; } break; case Z_APDU_duplicateDetectionRequest: