Fix setenv action to strdup key=variable

This commit is contained in:
Felipe Zimmerle
2018-11-29 15:17:00 -03:00
parent af137442d5
commit 407b6c0f4b
2 changed files with 3 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ bool SetENV::evaluate(Rule *rule, Transaction *t) {
ms_dbg_a(t, 8, "Setting envoriment variable: "
+ colNameExpanded + ".");
putenv((char *)colNameExpanded.c_str());
putenv(strdup(colNameExpanded.c_str()));
return true;
}