exec: Call putenv() with a global buffer
authorDaniel Vrátil <daniel.vratil@avast.com>
Wed, 12 Sep 2018 15:20:00 +0000 (17:20 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 9 Oct 2018 12:40:40 +0000 (14:40 +0200)
commit33b2b04f702b3c30661521ddfe2d0f000c0fa5d9
tree9b703b99c60058e2a7e11454aeb0b6e34efbfbbf
parent8686f6ce494f55319eda43886b97f5c41e9a47cf
exec: Call putenv() with a global buffer

putenv() adds the string pointer to the environment so it should
not be called with an automatic variable.

Signed-off-by: Florian Forster <octo@collectd.org>
src/exec.c