summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2009-08-31 17:54:11 +0000
committerEli Zaretskii <eliz@gnu.org>2009-08-31 17:54:11 +0000
commit70c726c875f97ca5f3e46e4cfab7af9649f13023 (patch)
tree20e7f3f1aa74d38612b278b968ffbfd9e8c6ce9b /function.c
parent7deb42aafdf547a3648f60ff04e0114c10a3d18d (diff)
downloadgunmake-70c726c875f97ca5f3e46e4cfab7af9649f13023.tar.gz
* function.c (windows32_openpipe): Update envp after calling
sync_Path_environment.
Diffstat (limited to 'function.c')
-rw-r--r--function.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/function.c b/function.c
index c7e1d4f..2e6d5cb 100644
--- a/function.c
+++ b/function.c
@@ -1480,6 +1480,9 @@ windows32_openpipe (int *pipedes, int *pid_p, char **command_argv, char **envp)
/* make sure that CreateProcess() has Path it needs */
sync_Path_environment();
+ /* `sync_Path_environment' may realloc `environ', so take note of
+ the new value. */
+ envp = environ;
if (!process_begin(hProcess, command_argv, envp, command_argv[0], NULL)) {
/* register process for wait */