Skip to content

Commit f36d81d

Browse files
committed
fix uninitialized var
1 parent 037b7cf commit f36d81d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pg_probackup.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ main(int argc, char *argv[])
608608
restore_params->restore_as_replica = restore_as_replica;
609609
restore_params->skip_block_validation = skip_block_validation;
610610
restore_params->skip_external_dirs = skip_external_dirs;
611+
restore_params->partial_db_list = NULL;
611612

612613
/* handle partial restore parameters */
613614
if (datname_exclude_list && datname_include_list)
@@ -623,8 +624,6 @@ main(int argc, char *argv[])
623624
restore_params->is_include_list = true;
624625
restore_params->partial_db_list = datname_include_list;
625626
}
626-
627-
628627
}
629628

630629
if (num_threads < 1)

0 commit comments

Comments
 (0)