commit | 6766572dcbb00008c14f66bc81d494356ce85268 | [log] [tgz] |
---|---|---|
author | Mikhail Glushenkov <foldr@codedgers.com> | Wed Nov 12 12:41:18 2008 +0000 |
committer | Mikhail Glushenkov <foldr@codedgers.com> | Wed Nov 12 12:41:18 2008 +0000 |
tree | a8f094c0de6e3406c2c148a5d4efc8cb09248f7f | |
parent | 9a365b6acb3e43dace074dc28264ed70511b103c [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59131 91177308-0d34-0410-b5e6-96231b3b80d8