diff --git a/Framework/Algorithms/src/GetAllEi.cpp b/Framework/Algorithms/src/GetAllEi.cpp index 2e39f9055468f443efdc43e73a901201e4d87619..60418d5071ea437e50237e3f826e2d099efadc9e 100644 --- a/Framework/Algorithms/src/GetAllEi.cpp +++ b/Framework/Algorithms/src/GetAllEi.cpp @@ -444,7 +444,7 @@ bool GetAllEi::peakGuess(const API::MatrixWorkspace_sptr &inputWS, size_t index, double sMin(std::numeric_limits<double>::max()); double sMax(-sMin); - double xOfMax, dXmax; + double xOfMax(0), dXmax(0); double Intensity(0); auto X = inputWS->readX(index);