mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-30 19:24:07 +00:00
[SV 47942] Avoid random crashes in subordinate programs on MS-Windows
* w32/subproc/sub_proc.c (process_begin): Zero out startInfo before using it. Fixes crashes in Intel Fortran compiler invoked by Make.
This commit is contained in:
parent
6e640321fd
commit
4c9e10fd94
1 changed files with 1 additions and 0 deletions
|
@ -677,6 +677,7 @@ process_begin(
|
||||||
/*
|
/*
|
||||||
* Set up inherited stdin, stdout, stderr for child
|
* Set up inherited stdin, stdout, stderr for child
|
||||||
*/
|
*/
|
||||||
|
memset(&startInfo, sizeof(startInfo));
|
||||||
GetStartupInfo(&startInfo);
|
GetStartupInfo(&startInfo);
|
||||||
startInfo.dwFlags = STARTF_USESTDHANDLES;
|
startInfo.dwFlags = STARTF_USESTDHANDLES;
|
||||||
startInfo.lpReserved = 0;
|
startInfo.lpReserved = 0;
|
||||||
|
|
Loading…
Reference in a new issue