From: Christophe Lyon Date: Mon, 9 Nov 2020 07:10:48 +0000 (+0000) Subject: libiberty/pex-win32.c: Initialize orig_err X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=946b73c1132a7b6e0fb05ac9ef79f0a72858ce65;p=gcc.git 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 Christophe Lyon libiberty/ * pex-win32.c (pex_win32_exec_child): Initialize orig_err. --- diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index 331067b5078..f5fafaa61e5 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. */