CID 21281: Uninitialized scalar variable (UNINIT)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 May 2013 08:02:15 +0000 (08:02 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 May 2013 08:02:15 +0000 (08:02 +0000)
PYTHIA8/pythia8175/src/MultipartonInteractions.cxx

index eb586a6..ab99441 100644 (file)
@@ -1868,7 +1868,7 @@ double MultipartonInteractions::sigmaPT2rescatter( Event& event) {
     double uHatTmp = -0.5 * sHatTmp * (1. + root);
 
     // Begin evaluate parton densities at actual x1.
-    double xPDF1[21];
+    double xPDF1[21] = {0};
     double xPDF1sum = 0.;
   
     // Use rescaled densities, with preweighting 9/4 for gluons.