Skip to content
Snippets Groups Projects
Commit dee44d0f authored by scott snyder's avatar scott snyder
Browse files

TBDetDescrAlg: Fix compilation warning.

Compilation warning: uninitialized variable.



Former-commit-id: 15256a1f
parent 05c2b6fd
No related branches found
No related tags found
No related merge requests found
......@@ -162,18 +162,14 @@ StatusCode TBDetDescrLoader::execute() {
case 2: // read always
ATH_MSG_DEBUG( "Action: read TBDetDescr from StoreGate" );
const TBElementContainer* pContainer;
sc = evtStore()->retrieve(pContainer,m_TBElementContainer);
if (sc.isSuccess()){
{
const TBElementContainer* pContainer = nullptr;
ATH_CHECK( evtStore()->retrieve(pContainer,m_TBElementContainer) );
m_TBDDM->initialize(pContainer);
m_TBDDM->print(msg());
} else {
ATH_MSG_FATAL( "Can't retrieve TBElementContainer" );
return StatusCode::FAILURE;
}
break;
default:
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment