CID 21280: Uninitialized scalar variable (UNINIT)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 May 2013 13:22:14 +0000 (13:22 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 May 2013 13:22:14 +0000 (13:22 +0000)
PYTHIA8/pythia8175/src/MultipartonInteractions.cxx

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