From db08d973c6d1d3893f2468ddf841d54bd12a15e2 Mon Sep 17 00:00:00 2001
From: Markus Frank <markus.frank@cern.ch>
Date: Thu, 6 Feb 2014 09:50:17 +0000
Subject: [PATCH] Another attempt to please coverity....

---
 DDG4/src/Geant4Converter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDG4/src/Geant4Converter.cpp b/DDG4/src/Geant4Converter.cpp
index e98bbda5c..7db13e4ee 100644
--- a/DDG4/src/Geant4Converter.cpp
+++ b/DDG4/src/Geant4Converter.cpp
@@ -568,7 +568,7 @@ void* Geant4Converter::handlePlacement(const string& name, const TGeoNode* node)
       else if ( g4mot && daughter_is_assembly ) {
         printout(DEBUG, "Geant4Converter", "++ Assembly: makeImprint: %16p dau:%s "
             "Tr:x=%8.3f y=%8.3f z=%8.3f  Rot:phi=%7.3f theta=%7.3f psi=%7.3f\n", ass_dau,
-            g4mot ? g4mot->GetName().c_str() : "---", transform.dx(), transform.dy(), transform.dz(), rotmat.getPhi(),
+            g4mot->GetName().c_str(), transform.dx(), transform.dy(), transform.dz(), rotmat.getPhi(),
             rotmat.getTheta(), rotmat.getPsi());
         std::vector<G4VPhysicalVolume*> phys_volumes;
         AssemblyChildMap::iterator i = info.g4AssemblyChildren.find(ass_dau);
-- 
GitLab