From 00d6d986ad11ccc7f42de4f4e14851bb625d61c6 Mon Sep 17 00:00:00 2001 From: hristov Date: Thu, 14 Aug 2003 12:03:49 +0000 Subject: [PATCH] String initialization to avoid valgrind warnings --- PHOS/AliPHOS.cxx | 2 +- PMD/AliPMDv0.cxx | 2 +- PMD/AliPMDv1.cxx | 2 +- PMD/AliPMDv3.cxx | 2 +- START/AliSTARTv0.cxx | 2 +- START/AliSTARTv1.cxx | 2 +- START/AliSTARTv2.cxx | 2 +- TPC/AliTPC.cxx | 2 +- TRD/AliTRD.cxx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/PHOS/AliPHOS.cxx b/PHOS/AliPHOS.cxx index fdad9ed75cb..232c895a13e 100644 --- a/PHOS/AliPHOS.cxx +++ b/PHOS/AliPHOS.cxx @@ -184,7 +184,7 @@ void AliPHOS::CreateMaterials() AliMaterial(15, "Ar$", 39.948, 18.0, dAr, 14.0, 0., 0, 0) ; // ArCo2 - Char_t namate[21]; + Char_t namate[21]=""; Float_t aGM[2] ; Float_t zGM[2] ; Float_t wGM[2] ; diff --git a/PMD/AliPMDv0.cxx b/PMD/AliPMDv0.cxx index 49bef7c1b56..ffbbd8e892f 100644 --- a/PMD/AliPMDv0.cxx +++ b/PMD/AliPMDv0.cxx @@ -846,7 +846,7 @@ void AliPMDv0::CreateMaterials() // define gas-mixtures - char namate[21]; + char namate[21]=""; gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf); ag[1] = a; zg[1] = z; diff --git a/PMD/AliPMDv1.cxx b/PMD/AliPMDv1.cxx index 9028231aa45..abc20aca210 100644 --- a/PMD/AliPMDv1.cxx +++ b/PMD/AliPMDv1.cxx @@ -841,7 +841,7 @@ void AliPMDv1::CreateMaterials() // define gas-mixtures - char namate[21]; + char namate[21]=""; gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf); ag[1] = a; zg[1] = z; diff --git a/PMD/AliPMDv3.cxx b/PMD/AliPMDv3.cxx index 7feae99ffce..1f0ca266aa1 100644 --- a/PMD/AliPMDv3.cxx +++ b/PMD/AliPMDv3.cxx @@ -602,7 +602,7 @@ void AliPMDv3::CreateMaterials() // define gas-mixtures - char namate[21]; + char namate[21]=""; gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf); ag[1] = a; zg[1] = z; diff --git a/START/AliSTARTv0.cxx b/START/AliSTARTv0.cxx index 1ae8b3110fa..3c831839201 100755 --- a/START/AliSTARTv0.cxx +++ b/START/AliSTARTv0.cxx @@ -297,7 +297,7 @@ void AliSTARTv0::CreateMaterials() AliMixture( 3, "Al2O3 $", aal2o3, zal2o3, denscer, -2, wal2o3); AliMixture( 4, "PMT glass $",aglass,zglass,dglass,-2,wglass); - char namate[21]; + char namate[21]=""; gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf); acer[0]=a; zcer[0]=z; diff --git a/START/AliSTARTv1.cxx b/START/AliSTARTv1.cxx index adcf5c32b23..2c8264fc623 100755 --- a/START/AliSTARTv1.cxx +++ b/START/AliSTARTv1.cxx @@ -487,7 +487,7 @@ void AliSTARTv1::CreateMaterials() AliMixture( 3, "Al2O3 $", aal2o3, zal2o3, denscer, -2, wal2o3); AliMixture( 4, "PMT glass $",aglass,zglass,dglass,-2,wglass); - char namate[21]; + char namate[21]=""; gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf); acer[0]=a; zcer[0]=z; diff --git a/START/AliSTARTv2.cxx b/START/AliSTARTv2.cxx index e4c25ebc81a..c855cb23908 100644 --- a/START/AliSTARTv2.cxx +++ b/START/AliSTARTv2.cxx @@ -243,7 +243,7 @@ void AliSTARTv2::CreateMaterials() AliMixture (3, "Al2O3 $", aal2o3, zal2o3, denscer, -2, wal2o3); AliMixture (4, "PMT glass $", aglass, zglass, dglass, -2, wglass); - char namate[21]; + char namate[21]=""; gMC->Gfmate ((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf); acer[0] = a; zcer[0] = z; diff --git a/TPC/AliTPC.cxx b/TPC/AliTPC.cxx index 6b9bb027810..d8ec691232d 100644 --- a/TPC/AliTPC.cxx +++ b/TPC/AliTPC.cxx @@ -430,7 +430,7 @@ void AliTPC::CreateMaterials() // gases - mixtures, ID >= 20 pure gases, <= 10 ID < 20 -compounds //---------------------------------------------------------------- - char namate[21]; + char namate[21]=""; density = 0.; Float_t am=0; Int_t nc; diff --git a/TRD/AliTRD.cxx b/TRD/AliTRD.cxx index 380e9de1b5a..b9d0ec8cce8 100644 --- a/TRD/AliTRD.cxx +++ b/TRD/AliTRD.cxx @@ -595,7 +595,7 @@ void AliTRD::CreateMaterials() AliMixture(14,"Plexiglas", apg, zpg, dpg, -3, wpg); // Gas mixtures - Char_t namate[21]; + Char_t namate[21]=""; // Xe/CO2-mixture // Get properties of Xe gMC->Gfmate((*fIdmate)[4], namate, agm[0], zgm[0], d, radl, absl, buf, nbuf); -- 2.43.0