Fix Coverity reports
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Mar 2011 10:48:15 +0000 (10:48 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Mar 2011 10:48:15 +0000 (10:48 +0000)
TTherminator/Therminator/Parser.cxx
TTherminator/Therminator/Particle.cxx

index 33756a3..86c0ff2 100644 (file)
@@ -597,7 +597,7 @@ void Parser::ReadShare()
       in2.ignore(200,'\n');
       //END OF HEAD-LINE
 
-      char tFather[20], tDaughter1[20], tDaughter2[20], tDaughter3[20];
+      char tFather[50], tDaughter1[50], tDaughter2[50], tDaughter3[50];
       double tBRatio, tRatio;
       int CGcoeff; // complete branching ratio by Clebsch-Gordan coefficient: 0-no 1-yes
        
index d87cd20..b4c0881 100644 (file)
@@ -31,6 +31,7 @@
 
 Particle::Particle()
 {
+  mPartType  = 0;
 }
 
 Particle::Particle(double aRapidity, double aPt, double aPhip,