libiberty/pex-win32.c: Initialize orig_err
Initializing orig_err avoids a warning: "may be used uninitialized". See 97108. 2020-09-14 Torbjörn SVENSSON <torbjorn.svensson@st.com> Christophe Lyon <christophe.lyon@linaro.org> libiberty/ * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
This commit is contained in:
parent
ce4ae1f489
commit
946b73c113
|
@ -771,7 +771,7 @@ pex_win32_exec_child (struct pex_obj *obj ATTRIBUTE_UNUSED, int flags,
|
||||||
OSVERSIONINFO version_info;
|
OSVERSIONINFO version_info;
|
||||||
STARTUPINFO si;
|
STARTUPINFO si;
|
||||||
PROCESS_INFORMATION pi;
|
PROCESS_INFORMATION pi;
|
||||||
int orig_out, orig_in, orig_err;
|
int orig_out, orig_in, orig_err = 0;
|
||||||
BOOL separate_stderr = !(flags & PEX_STDERR_TO_STDOUT);
|
BOOL separate_stderr = !(flags & PEX_STDERR_TO_STDOUT);
|
||||||
|
|
||||||
/* Ensure we have inheritable descriptors to pass to the child. */
|
/* Ensure we have inheritable descriptors to pass to the child. */
|
||||||
|
|
Loading…
Reference in New Issue