Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5c868c9

Browse files
committed
Fix possible null pointer reference
Per Coverity. Introduced in 37851a8.
1 parent bf4ed12 commit 5c868c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/utils/init/postinit.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,7 @@ CheckMyDatabase(const char *name, bool am_superuser, bool override_allow_connect
439439
ereport(WARNING,
440440
(errmsg("database \"%s\" has no actual collation version, but a version was recorded",
441441
name)));
442-
443-
if (strcmp(actual_versionstr, collversionstr) != 0)
442+
else if (strcmp(actual_versionstr, collversionstr) != 0)
444443
ereport(WARNING,
445444
(errmsg("database \"%s\" has a collation version mismatch",
446445
name),

0 commit comments

Comments
 (0)