Skip to content

Commit 73aa8b4

Browse files
committed
avoid use unportable variable environ
1 parent 80d7c9b commit 73aa8b4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

deimos/libcomcom_wrapper.d

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,8 @@ string _runCommand(string file,
4646
return output[0..output_len].idup;
4747
}
4848

49-
// `environ` is avail only on Unix, but libcomcom doesn't work on Windows anyway
50-
private extern(C) extern __gshared const char** environ;
51-
52-
string runCommand(string file, string[] argv,string input, int timeout = -1) {
53-
return _runCommand(file, argv, environ, input, timeout);
49+
string runCommand(string file, string[] argv, string input, int timeout = -1) {
50+
return _runCommand(file, argv, null, input, timeout);
5451
}
5552

5653
string runCommandWithEnvironment(string file,

0 commit comments

Comments
 (0)