ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_Cabling::CoveritySafe Namespace Reference

Functions

Equivalent functions which avoid coverity check warnings
std::string getenv (const std::string &variableName)
 get an environment variable

Function Documentation

◆ getenv()

std::string SCT_Cabling::CoveritySafe::getenv ( const std::string & variableName)

get an environment variable

'getenv' which avoids possibly dereferencing a null pointer

Definition at line 63 of file SCT_CablingUtilities.cxx.

63 {
64 std::string result("");
65 const char * pChar=std::getenv(variableName.c_str());
66 if (pChar) result=pChar;
67 return result;
68 }