diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-11-09 07:10:48 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-11-09 07:15:15 +0000 |
commit | 946b73c1132a7b6e0fb05ac9ef79f0a72858ce65 (patch) | |
tree | ff1abe4ad4724983da3ff994a8ca790da9a8a6fb /libiberty | |
parent | ce4ae1f4893e322495c5d24b2f0e807a7f7cf92f (diff) | |
download | gcc-946b73c1132a7b6e0fb05ac9ef79f0a72858ce65.zip gcc-946b73c1132a7b6e0fb05ac9ef79f0a72858ce65.tar.gz gcc-946b73c1132a7b6e0fb05ac9ef79f0a72858ce65.tar.bz2 |
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.
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/pex-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index 331067b..f5fafaa 100644 --- a/libiberty/pex-win32.c +++ b/libiberty/pex-win32.c @@ -771,7 +771,7 @@ pex_win32_exec_child (struct pex_obj *obj ATTRIBUTE_UNUSED, int flags, OSVERSIONINFO version_info; STARTUPINFO si; 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); /* Ensure we have inheritable descriptors to pass to the child. */ |