diff --git a/AtlasTest/DatabaseTest/AthenaPoolTest/src/AthenaPoolTestDataReader.cxx b/AtlasTest/DatabaseTest/AthenaPoolTest/src/AthenaPoolTestDataReader.cxx index 003b5558dce5190f67db363b039f9ac940714d33..3f6423b75007eec3460cbfa01d7843bb764b5f5c 100755 --- a/AtlasTest/DatabaseTest/AthenaPoolTest/src/AthenaPoolTestDataReader.cxx +++ b/AtlasTest/DatabaseTest/AthenaPoolTest/src/AthenaPoolTestDataReader.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration */ /** @@ -180,7 +180,7 @@ StatusCode AthenaPoolTestDataReader::execute() //bool readMatrix = false; bool readMatrix = true; if (readMatrix) { - const AthenaPoolTestMatrix* matrix; + const AthenaPoolTestMatrix* matrix = nullptr; for ( int i = 0; i < 3; ++i ) { std::stringstream stream; stream << "AthenaPoolTestMatrix_" << i; diff --git a/AtlasTest/DatabaseTest/IOVDbTestAlg/src/IOVDbTestAlg.cxx b/AtlasTest/DatabaseTest/IOVDbTestAlg/src/IOVDbTestAlg.cxx index d275488a9d300c4c317b98ab2f94029924772120..2638526338a80c5a591bc9ea44e32d350accae2a 100755 --- a/AtlasTest/DatabaseTest/IOVDbTestAlg/src/IOVDbTestAlg.cxx +++ b/AtlasTest/DatabaseTest/IOVDbTestAlg/src/IOVDbTestAlg.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration */ #include "IOVDbTestAlg.h" @@ -394,7 +394,7 @@ StatusCode IOVDbTestAlg::printCondObjects() const { ATH_MSG_INFO( "in printCondObjects()" ); // IOVDbTestMDTEleMap - const IOVDbTestMDTEleMap* elemMap; + const IOVDbTestMDTEleMap* elemMap = nullptr; ATH_CHECK( detStore()->retrieve(elemMap, "/IOVDbTest/IOVDbTestMDTEleMap") ); ATH_MSG_INFO( "Retrieved IOVDbTestMDTEleMap " );