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 6a8336b880
commit e53162deb8

View File

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