X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fpex-win32.c;h=077812306545c670bd86713989b74f11342c3d4b;hb=7cc124ae972d328baa1afc704ae8b812191271c1;hp=4c15b0d11a0e0b89ec3e188b57020b55aebed8dc;hpb=41f225defe891ff71d3c8a149cdc1ed8f3a64c5c;p=binutils-gdb.git diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index 4c15b0d11a0..07781230654 100644 --- a/libiberty/pex-win32.c +++ b/libiberty/pex-win32.c @@ -1,7 +1,6 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. Generic Win32 specialization. - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. + Copyright (C) 1996-2022 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -772,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. */