Skip to content

Commit 800ba04

Browse files
committed
No need to check static array backup->program_version to NULL
1 parent c1fd7ce commit 800ba04

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/validate.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ pgBackupValidate(pgBackup *backup)
5353
int i;
5454

5555
/* Check backup version */
56-
if (backup->program_version &&
57-
parse_program_version(backup->program_version) > parse_program_version(PROGRAM_VERSION))
56+
if (parse_program_version(backup->program_version) > parse_program_version(PROGRAM_VERSION))
5857
elog(ERROR, "pg_probackup binary version is %s, but backup %s version is %s. "
5958
"pg_probackup do not guarantee to be forward compatible. "
6059
"Please upgrade pg_probackup binary.",

0 commit comments

Comments
 (0)