1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-23 03:21:12 +03:00

Fix non-C89-compliant initialization of array in parallel.c.

In newer branches this was already fixed in 59202fae04. Found using
clang's -Wc99-extensions.
This commit is contained in:
Andres Freund
2016-04-14 19:22:50 -07:00
parent f1d26d3e0a
commit 6e53bb4fdc

View File

@ -558,7 +558,10 @@ ParallelBackupStart(ArchiveHandle *AH, RestoreOptions *ropt)
{
/* we are the worker */
int j;
int pipefd[2] = {pipeMW[PIPE_READ], pipeWM[PIPE_WRITE]};
int pipefd[2];
pipefd[0] = pipeMW[PIPE_READ];
pipefd[1] = pipeWM[PIPE_WRITE];
/*
* Store the fds for the reverse communication in pstate. Actually