Clarify intent

This commit is contained in:
Ian Barwick
2015-02-26 15:54:01 +09:00
parent 63c416bb76
commit 22dd164cbb

View File

@@ -352,7 +352,10 @@ main(int argc, char **argv)
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])
{
strncpy(runtime_options.masterport, DEFAULT_MASTER_PORT, MAXLEN);