Fix possible null pointer reference
Per Coverity. Introduced in 37851a8b83d3d57ca48736093b10aa5f3bc0c177.
This commit is contained in:
parent
bf4ed12b58
commit
5c868c92ca
@ -439,8 +439,7 @@ CheckMyDatabase(const char *name, bool am_superuser, bool override_allow_connect
|
|||||||
ereport(WARNING,
|
ereport(WARNING,
|
||||||
(errmsg("database \"%s\" has no actual collation version, but a version was recorded",
|
(errmsg("database \"%s\" has no actual collation version, but a version was recorded",
|
||||||
name)));
|
name)));
|
||||||
|
else if (strcmp(actual_versionstr, collversionstr) != 0)
|
||||||
if (strcmp(actual_versionstr, collversionstr) != 0)
|
|
||||||
ereport(WARNING,
|
ereport(WARNING,
|
||||||
(errmsg("database \"%s\" has a collation version mismatch",
|
(errmsg("database \"%s\" has a collation version mismatch",
|
||||||
name),
|
name),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user