diff --git a/repmgr.c b/repmgr.c index 4d4f32a5..86a9f6aa 100644 --- a/repmgr.c +++ b/repmgr.c @@ -318,7 +318,7 @@ main(int argc, char **argv) } /* We check that port number is not null */ - if (!runtime_options.dbname[0]) + if (!runtime_options.masterport[0]) { strncpy(runtime_options.masterport, DEFAULT_MASTER_PORT, MAXLEN); }