Fix master port check

Check introduced in dc0dfe9b56
was comparing the provided database name instead of the port.
This commit is contained in:
Ian Barwick
2015-02-12 14:39:05 +09:00
parent eabb3cb1ab
commit b453c6a533

View File

@@ -349,7 +349,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);
}