From 9e74dcc2fc455f85574b555a83c74df9d087fe52 Mon Sep 17 00:00:00 2001 From: cblume Date: Fri, 22 Oct 2010 12:23:11 +0000 Subject: [PATCH] Fix Coverity defects --- TRD/AliTRDqaBlackEvents.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TRD/AliTRDqaBlackEvents.cxx b/TRD/AliTRDqaBlackEvents.cxx index 4af46684367..35479dd3524 100644 --- a/TRD/AliTRDqaBlackEvents.cxx +++ b/TRD/AliTRDqaBlackEvents.cxx @@ -762,8 +762,8 @@ void AliTRDqaBlackEvents::Process(const char *filename) // Process something // - char fn[256]; - strncpy(fn,filename,256); + //char fn[256]; + //strncpy(fn,filename,256); //AliInfo(Form("FILENAME = %s (%s)\n", filename, fn)); @@ -912,7 +912,7 @@ void AliTRDqaBlackEvents::Process(const char *filename) // save histograms //AliInfo(Form("FILENAME 2 = %s (%d)\n", fn, fn)); - TFile *file = new TFile(fn, "recreate"); + TFile *file = new TFile(filename, "recreate"); for(Int_t det = 0; det < kDET; det++) { if (!map[det]) continue; fChPed[det]->Write(); -- 2.43.0