summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC++/2007-03-27-FunctionVarRename.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-11-12 12:41:18 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-11-12 12:41:18 +0000
commita2909684b64c8be489d4f83adf609def104fdef3 (patch)
treef2bb6289255478857bf38799d80260d3089d2a87 /llvm/test/FrontendC++/2007-03-27-FunctionVarRename.cpp
parent2889780436ebc7feccb81aa11117e8a0a4de42ed (diff)
downloadbcm5719-llvm-a2909684b64c8be489d4f83adf609def104fdef3.tar.gz
bcm5719-llvm-a2909684b64c8be489d4f83adf609def104fdef3.zip
Check the return value of std::getenv.
When constructing std::strings from C strings, we should check the input value to be not NULL so that the std::string constructor does not segfault. Fixes #3047. llvm-svn: 59131
Diffstat (limited to 'llvm/test/FrontendC++/2007-03-27-FunctionVarRename.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud