diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-26 19:00:22 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-26 19:00:22 (GMT) |
commit | 1d958cad60f599a72281cec1f9abb349c5ee573b (patch) | |
tree | 53ac6b9837f50bb9816737fced1e55e02a871c51 /Source/cmSystemTools.cxx | |
parent | 2db971afb4e2d09e7ca64e8745df5f8fcf55fd71 (diff) | |
download | CMake-1d958cad60f599a72281cec1f9abb349c5ee573b.zip CMake-1d958cad60f599a72281cec1f9abb349c5ee573b.tar.gz CMake-1d958cad60f599a72281cec1f9abb349c5ee573b.tar.bz2 |
ENH: forgot return value
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index fe6cfa6..032a95d 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1196,8 +1196,9 @@ bool cmSystemTools::PutEnv(const char* value) static cmDeletingCharVector localEnvironment; char* envVar = new char[strlen(value)+1]; strcpy(envVar, value); - putenv(envVar); + int ret = putenv(envVar); // save the pointer in the static vector so that it can // be deleted on exit localEnvironment.push_back(envVar); + return ret == 0; } |