]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/OnlineAnalysis/AliHLTMUONHitReconstructorComponent.cxx
Fixing coverty warnings for NULL pointer dereferencing.
[u/mrichter/AliRoot.git] / HLT / MUON / OnlineAnalysis / AliHLTMUONHitReconstructorComponent.cxx
index 866fdcb8fa5445b8f392239398fa914d6228e6a1..79c88088965ae981ef67d9d1769f0c8e380ab632 100644 (file)
@@ -542,8 +542,9 @@ int AliHLTMUONHitReconstructorComponent::Reconfigure(
        ///      cut parameter if 'cdbEntry' equals "HLT/ConfigMUON/HitReconstructor".
        /// \param componentId  The name of the component in the current chain.
        
-       bool startsWithMUON = TString(cdbEntry).Index("MUON/", 5, 0, TString::kExact) == 0;
-       bool givenConfigPath = strcmp(cdbEntry, AliHLTMUONConstants::HitReconstructorCDBPath()) == 0;
+       TString path = cdbEntry;
+       bool startsWithMUON = path.Index("MUON/", 5, 0, TString::kExact) == 0;
+       bool givenConfigPath = (path == AliHLTMUONConstants::HitReconstructorCDBPath());
        
        if (cdbEntry == NULL or startsWithMUON or givenConfigPath)
        {