CID 18211: Uninitialized scalar field (UNINIT_CTOR)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 May 2013 14:54:02 +0000 (14:54 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 May 2013 14:54:02 +0000 (14:54 +0000)
PYTHIA8/pythia8175/include/PartonDistributions.h

index 7275e61..6e84719 100644 (file)
@@ -361,8 +361,18 @@ public:
 
   // Constructor.
  PomH1FitAB(int idBeamIn = 990, int iFit = 1, double rescaleIn = 1.,
-   string xmlPath = "../xmldoc/", Info* infoPtr = 0) : PDF(idBeamIn) 
-   {rescale = rescaleIn; init( iFit, xmlPath, infoPtr);}
+           string xmlPath = "../xmldoc/", Info* infoPtr = 0) : PDF(idBeamIn),
+    nx(0), nQ2(0), rescale(0.), xlow(0.), xupp(0.), dx(0.), 
+    Q2low(0.), Q2upp(0.), dQ2(0.)
+    {
+      for (int i = 0; i < 100; i++) {
+       for (int j = 0; j < 30; j++) {
+         gluonGrid[i][j] = 0.;
+         quarkGrid[i][j] = 0.;
+       }
+      }
+      rescale = rescaleIn; init( iFit, xmlPath, infoPtr);
+    }
 
 private: