Commit a1e3fa93 authored by Sergei Golubchik's avatar Sergei Golubchik

lp:893522 more problems found by PVS Studio

parent f523df0a
...@@ -514,7 +514,7 @@ static void libevent_connection_close(THD *thd) ...@@ -514,7 +514,7 @@ static void libevent_connection_close(THD *thd)
thd->killed= THD::KILL_CONNECTION; // Avoid error messages thd->killed= THD::KILL_CONNECTION; // Avoid error messages
if (thd->net.vio->sd >= 0) // not already closed if (thd->net.vio->type != VIO_CLOSED) // not already closed
{ {
end_connection(thd); end_connection(thd);
close_connection(thd, 0, 1); close_connection(thd, 0, 1);
......
...@@ -116,7 +116,7 @@ int get_mysql_service_properties(const wchar_t *bin_path, ...@@ -116,7 +116,7 @@ int get_mysql_service_properties(const wchar_t *bin_path,
wcscat(mysqld_path, L".exe"); wcscat(mysqld_path, L".exe");
if(wcsicmp(file_part, L"mysqld.exe") != 0 && if(wcsicmp(file_part, L"mysqld.exe") != 0 &&
wcsicmp(file_part, L"mysqld.exe") != 0 && wcsicmp(file_part, L"mysqld-debug.exe") != 0 &&
wcsicmp(file_part, L"mysqld-nt.exe") != 0) wcsicmp(file_part, L"mysqld-nt.exe") != 0)
{ {
/* The service executable is not mysqld. */ /* The service executable is not mysqld. */
...@@ -244,4 +244,4 @@ int get_mysql_service_properties(const wchar_t *bin_path, ...@@ -244,4 +244,4 @@ int get_mysql_service_properties(const wchar_t *bin_path,
end: end:
LocalFree((HLOCAL)args); LocalFree((HLOCAL)args);
return retval; return retval;
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment