From 946b73c1132a7b6e0fb05ac9ef79f0a72858ce65 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Mon, 9 Nov 2020 07:10:48 +0000 Subject: [PATCH] libiberty/pex-win32.c: Initialize orig_err MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- libiberty/pex-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.30.2