CID 21226: Uninitialized scalar field (UNINIT_CTOR)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 May 2013 15:03:44 +0000 (15:03 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 May 2013 15:03:44 +0000 (15:03 +0000)
PYTHIA8/pythia8175/include/HadronScatter.h

index 9efe369..b6b868a 100644 (file)
@@ -135,7 +135,16 @@ class HadronScatter {
 public:
 
   // Constructor. 
-  HadronScatter() {}
+ HadronScatter():
+  infoPtr(0), rndmPtr(0), 
+    doHadronScatter(0), afterDecay(0), allowDecayProd(0),
+    scatterRepeat(0), doTile(0),
+    hadronSelect(0), scatterProb(0),
+    Npar(0), kPar(0), pPar(0), jPar(0), rMax(0), rMax2(0), 
+    pTsigma(0), pTsigma2(0), pT0MPI(0),
+    ytMax(0), ptMax(0), 
+    yMin(0), yMax(0), ytSize(0), ptSize(0)
+  {}
 
   // Initialisation
   bool init(Info* infoPtrIn, Settings& settings, Rndm* rndmPtrIn,