Skip to content

Commit 26bd9cf

Browse files
committed
PGPRO-1921: fix segfault in show when backup with provided BACKUP_ID do not exists
1 parent 33a33a9 commit 26bd9cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/catalog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,14 +561,14 @@ readBackupControlFile(const char *path)
561561
{0}
562562
};
563563

564+
pgBackupInit(backup);
564565
if (access(path, F_OK) != 0)
565566
{
566567
elog(WARNING, "control file \"%s\" doesn't exist", path);
567568
pgBackupFree(backup);
568569
return NULL;
569570
}
570571

571-
pgBackupInit(backup);
572572
parsed_options = pgut_readopt(path, options, WARNING);
573573

574574
if (parsed_options == 0)

0 commit comments

Comments
 (0)