Code

notify_systemd: unset NOTIFY_SOCKET later
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 8 Sep 2015 14:46:27 +0000 (16:46 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Sep 2015 18:41:31 +0000 (20:41 +0200)
commit8d52247a4e0cbcd583f295cf44dd7b2572e9d5bd
treeadf2ffc364bce10a320676f80c94d7f5b5270b83
parent2b4da1f36e67a617cf742d667ad3b922a219f7a6
notify_systemd: unset NOTIFY_SOCKET later

getenv returns a pointer, possibly to a static buffer.
If I understand the specs correctly, unsetenv is basically free
to do what it wants with this, so don't keep using the pointer
after we do unsetenv.
src/daemon/collectd.c