From: morsch Date: Wed, 29 May 2013 14:54:02 +0000 (+0000) Subject: CID 18211: Uninitialized scalar field (UNINIT_CTOR) X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=804678d5a1c5eea44d9dfa26f1aada5dc7751b4e CID 18211: Uninitialized scalar field (UNINIT_CTOR) --- diff --git a/PYTHIA8/pythia8175/include/PartonDistributions.h b/PYTHIA8/pythia8175/include/PartonDistributions.h index 7275e615c06..6e84719ef7e 100644 --- a/PYTHIA8/pythia8175/include/PartonDistributions.h +++ b/PYTHIA8/pythia8175/include/PartonDistributions.h @@ -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: