Don't use unsetenv in `exec`

Hopefully fixes #809
pull/825/head
jackun 2 years ago
parent 6a68814e0a
commit a05dd84bf5
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -19,8 +19,7 @@ std::unique_ptr<Logger> logger;
string exec(string command) {
#ifndef _WIN32
if (getenv("LD_PRELOAD"))
unsetenv("LD_PRELOAD");
command = "env -u LD_PRELOAD " + command;
#endif
std::array<char, 128> buffer;
std::string result;

Loading…
Cancel
Save