1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed core dump bug in 'mysql' when using \p in prompt on Windows.

Fixed error when mysql_unix_port pointed to const string (not uncommon on windows)
This commit is contained in:
monty@mashka.mysql.fi
2003-02-02 05:13:09 +02:00
parent 8611ac7a9c
commit a9ee051a4d
2 changed files with 8 additions and 5 deletions

View File

@ -2371,9 +2371,9 @@ The server will not act as a slave.");
sql_print_error("Warning: Can't create thread to manage maintenance");
}
if (unix_sock == INVALID_SOCKET)
mysql_unix_port[0]= 0;
printf(ER(ER_READY),my_progname,server_version, mysql_unix_port, mysql_port);
printf(ER(ER_READY),my_progname,server_version,
((unix_sock == INVALID_SOCKET) ? (char*) "" : mysql_unix_port),
mysql_port);
fflush(stdout);
#ifdef __NT__