From d0b8a01ac113e70fa591fda880bb48dc410649b1 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Wed, 29 Nov 2017 02:42:42 +0100 Subject: [PATCH] TBCnv: Fix compilation warning. Compilation warning: uninitialized variable. Former-commit-id: 668f4ddc41ef8604760fe8c2a4f708c825f2dcf4 --- TestBeam/TBCnv/src/TBByteStreamCnvTool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestBeam/TBCnv/src/TBByteStreamCnvTool.cxx b/TestBeam/TBCnv/src/TBByteStreamCnvTool.cxx index d0e45b61729..e7053138464 100644 --- a/TestBeam/TBCnv/src/TBByteStreamCnvTool.cxx +++ b/TestBeam/TBCnv/src/TBByteStreamCnvTool.cxx @@ -230,7 +230,7 @@ StatusCode TBByteStreamCnvTool::BuildRODBlock(std::vector<uint32_t> *theRodBlock StatusCode sc; // TBTDCRaw part of the block : - const TBTDC* tbtdc; + const TBTDC* tbtdc = nullptr; std::string tbtdc_Key("TBTDC"); sc=evtStore()->retrieve(tbtdc,tbtdc_Key); if (sc!=StatusCode::SUCCESS) -- GitLab