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
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
v3.0.4 - YYYY-MMM-DD (to be released)
-------------------------------------
- Fix setenv action to strdup key=variable
[@zimmerle]
- Allow 0 length JSON requests.
[Issue #1822 - @allanbomsft, @zimmerle, @victorhora, @marcstern]
- Fix "make dist" target to include default configuration

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;
}