--- libiberty/pex-win32.c~0	2015-02-19 13:58:08.000000000 +0200
+++ libiberty/pex-win32.c	2015-02-21 12:32:22.255889300 +0200
@@ -870,9 +870,11 @@ pex_win32_exec_child (struct pex_obj *ob
 	_close (orig_in);
       if (orig_out != STDOUT_FILENO)
 	_close (orig_out);
-      if (separate_stderr
-	  && orig_err != STDERR_FILENO)
-	_close (orig_err);
+      if (separate_stderr)
+	{
+	  if (orig_err != STDERR_FILENO)
+	    _close (orig_err);
+	}
     }
 
   /* Close the standard input, standard output and standard error handles
