From 1d958cad60f599a72281cec1f9abb349c5ee573b Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 26 Jan 2004 14:00:22 -0500 Subject: ENH: forgot return value --- Source/cmSystemTools.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v0.12