Skip to content

Commit 1dc98af

Browse files
kulaginmgsmolk
authored andcommitted
[PBCKP-263] fix for tests.archive.ArchiveTest.test_archive_get_batching_sanity (postgrespro#532)
1 parent b0a2d87 commit 1dc98af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/archive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ uint32 run_wal_prefetch(const char *prefetch_dir, const char *archive_dir,
12751275

12761276
/* init thread args */
12771277
threads = (pthread_t *) palloc(sizeof(pthread_t) * num_threads);
1278-
threads_args = (archive_get_arg *) palloc(sizeof(archive_get_arg) * num_threads);
1278+
threads_args = (archive_get_arg *) palloc0(sizeof(archive_get_arg) * num_threads);
12791279

12801280
for (i = 0; i < num_threads; i++)
12811281
{

0 commit comments

Comments
 (0)