Content-Length: 260887 | pFad | http://github.com/postgrespro/postgres/commit/5c868c92caa864d223006c095d623b8086754c6f

AB Fix possible null pointer reference · postgrespro/postgres@5c868c9 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5c868c92caa864d223006c095d623b8086754c6f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy