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 e886e72f14
commit e213f3b99d

View File

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