Skip to content

Commit 3a187f6

Browse files
committed
Fix zero allocation during "pgcopydb list progress"
Signed-off-by: Arunprasad Rajkumar <[email protected]>
1 parent 24d8b18 commit 3a187f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pgcopydb/progress.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ copydb_update_progress(CopyDataSpec *copySpecs, CopyProgress *progress)
700700
}
701701

702702
progress->indexSummaryArray.count = 0;
703-
progress->indexSummaryArray.capacity = 0;
703+
progress->indexSummaryArray.capacity = ARRAY_CAPACITY_INCREMENT;
704704
progress->indexSummaryArray.array =
705705
(CopyIndexSummary *) calloc(progress->indexSummaryArray.capacity,
706706
sizeof(CopyIndexSummary));

0 commit comments

Comments
 (0)