8000 Fix non-C89-compliant initialization of array in parallel.c. · mayoor/postgres@6e53bb4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e53bb4

Browse files
committed
Fix non-C89-compliant initialization of array in parallel.c.
In newer branches this was already fixed in 59202fa. Found using clang's -Wc99-extensions.
1 parent f1d26d3 commit 6e53bb4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/pg_dump/parallel.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,10 @@ ParallelBackupStart(ArchiveHandle *AH, RestoreOptions *ropt)
558558
{
559559
/* we are the worker */
560560
int j;
561-
int pipefd[2] = {pipeMW[PIPE_READ], pipeWM[PIPE_WRITE]};
561+
int pipefd[2];
562+
563+
pipefd[0] = pipeMW[PIPE_READ];
564+
pipefd[1] = pipeWM[PIPE_WRITE];
562565

563566
/*
564567
* Store the fds for the reverse communication in pstate. Actually

0 commit comments

Comments
 (0)
0