--- yoda/techmodel/TofInitReader.cpp 2006/02/07 10:43:06 5.3 +++ yoda/techmodel/TofInitReader.cpp 2006/09/29 10:19:28 6.1 @@ -1,7 +1,7 @@ /** @file * $Author: kusanagi $ - * $Date: 2006/02/07 10:36:43 $ - * $Revision: 5.2 $ + * $Date: 2006/02/07 17:11:10 $ + * $Revision: 6.0 $ * * Implementation of the TofInitReader class. */ @@ -45,6 +45,7 @@ */ void TofInitReader::RunEvent(int EventNumber, long int dataLength) throw (WrongCRCException){ char subData[dataLength]; + memset(subData, 0, dataLength*sizeof(char)); InputFile->read(subData, sizeof(subData)); tofInit->tofInitData = new TArrayC(dataLength, subData); }