summaryrefslogtreecommitdiff
path: root/gcc/fixinc/procopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fixinc/procopen.c')
-rw-r--r--gcc/fixinc/procopen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fixinc/procopen.c b/gcc/fixinc/procopen.c
index 28004eed8a7..00f13b7ae97 100644
--- a/gcc/fixinc/procopen.c
+++ b/gcc/fixinc/procopen.c
@@ -104,10 +104,12 @@ chain_open (stdin_fd, pp_args, p_child)
t_pchar *pp_args;
pid_t *p_child;
{
- t_fd_pair stdout_pair = {-1, -1};
+ t_fd_pair stdout_pair;
pid_t ch_id;
char *pz_cmd;
+ stdout_pair.read_fd = stdout_pair.write_fd = -1;
+
/*
* Create a pipe it will be the child process' stdout,
* and the parent will read from it.