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

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy