Core/Misc: Fixed a bunch of issues found by static analysis

This commit is contained in:
Shauren
2013-05-17 20:39:53 +02:00
parent 4f43584af8
commit 8be181c7e6
12 changed files with 239 additions and 219 deletions

View File

@@ -84,8 +84,10 @@ bool MySQLConnection::Open()
int port;
char const* unix_socket;
unsigned int timeout = 10;
mysql_options(mysqlInit, MYSQL_SET_CHARSET_NAME, "utf8");
mysql_options(mysqlInit, MYSQL_OPT_READ_TIMEOUT, (char const*)&timeout);
#ifdef _WIN32
if (m_connectionInfo.host == ".") // named pipe use option (Windows)
{