Skip to content

Commit 407b6c0

Browse files
author
Felipe Zimmerle
committed
Fix setenv action to strdup key=variable
1 parent af13744 commit 407b6c0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
v3.0.4 - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- Fix setenv action to strdup key=variable
5+
[@zimmerle]
46
- Allow 0 length JSON requests.
57
[Issue #1822 - @allanbomsft, @zimmerle, @victorhora, @marcstern]
68
- Fix "make dist" target to include default configuration

src/actions/set_env.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bool SetENV::evaluate(Rule *rule, Transaction *t) {
3737
ms_dbg_a(t, 8, "Setting envoriment variable: "
3838
+ colNameExpanded + ".");
3939

40-
putenv((char *)colNameExpanded.c_str());
40+
putenv(strdup(colNameExpanded.c_str()));
4141

4242
return true;
4343
}

0 commit comments

Comments
 (0)