Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a1e3fa93
Commit
a1e3fa93
authored
Jan 12, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lp:893522 more problems found by PVS Studio
parent
f523df0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
sql/scheduler.cc
sql/scheduler.cc
+1
-1
sql/winservice.c
sql/winservice.c
+2
-2
No files found.
sql/scheduler.cc
View file @
a1e3fa93
...
@@ -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
);
...
...
sql/winservice.c
View file @
a1e3fa93
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment