mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Fix possible null pointer reference
Per Coverity. Introduced in 37851a8b83.
This commit is contained in:
parent
bf4ed12b58
commit
5c868c92ca
1 changed files with 1 additions and 2 deletions
|
|
@ -439,8 +439,7 @@ CheckMyDatabase(const char *name, bool am_superuser, bool override_allow_connect
|
|||
ereport(WARNING,
|
||||
(errmsg("database \"%s\" has no actual collation version, but a version was recorded",
|
||||
name)));
|
||||
|
||||
if (strcmp(actual_versionstr, collversionstr) != 0)
|
||||
else if (strcmp(actual_versionstr, collversionstr) != 0)
|
||||
ereport(WARNING,
|
||||
(errmsg("database \"%s\" has a collation version mismatch",
|
||||
name),
|
||||
|
|
|
|||
Loading…
Reference in a new issue