mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Clarify intent
This commit is contained in:
5
repmgr.c
5
repmgr.c
@@ -352,7 +352,10 @@ main(int argc, char **argv)
|
|||||||
strncpy(runtime_options.dbname, DEFAULT_DBNAME, MAXLEN);
|
strncpy(runtime_options.dbname, DEFAULT_DBNAME, MAXLEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We check that port number is not null */
|
/*
|
||||||
|
* If no primary port (-p, --port) provided, explicitly set the
|
||||||
|
* default PostgreSQL port.
|
||||||
|
*/
|
||||||
if (!runtime_options.masterport[0])
|
if (!runtime_options.masterport[0])
|
||||||
{
|
{
|
||||||
strncpy(runtime_options.masterport, DEFAULT_MASTER_PORT, MAXLEN);
|
strncpy(runtime_options.masterport, DEFAULT_MASTER_PORT, MAXLEN);
|
||||||
|
|||||||
Reference in New Issue
Block a user