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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
785517df
Commit
785517df
authored
Jan 20, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lp:700982 - Non-portable code in client plugin (fails on ARM).
don't pass NULL as an argument where va_list is expected.
parent
603444bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
sql-common/client_plugin.c
sql-common/client_plugin.c
+7
-2
No files found.
sql-common/client_plugin.c
View file @
785517df
...
...
@@ -239,6 +239,8 @@ int mysql_client_plugin_init()
{
MYSQL
mysql
;
struct
st_mysql_client_plugin
**
builtin
;
va_list
unused
;
LINT_INIT_STRUCT
(
unused
);
if
(
initialized
)
return
0
;
...
...
@@ -255,7 +257,7 @@ int mysql_client_plugin_init()
pthread_mutex_lock
(
&
LOCK_load_client_plugin
);
for
(
builtin
=
mysql_client_builtins
;
*
builtin
;
builtin
++
)
add_plugin
(
&
mysql
,
*
builtin
,
0
,
0
,
0
);
add_plugin
(
&
mysql
,
*
builtin
,
0
,
0
,
unused
);
pthread_mutex_unlock
(
&
LOCK_load_client_plugin
);
...
...
@@ -301,6 +303,9 @@ struct st_mysql_client_plugin *
mysql_client_register_plugin
(
MYSQL
*
mysql
,
struct
st_mysql_client_plugin
*
plugin
)
{
va_list
unused
;
LINT_INIT_STRUCT
(
unused
);
if
(
is_not_initialized
(
mysql
,
plugin
->
name
))
return
NULL
;
...
...
@@ -315,7 +320,7 @@ mysql_client_register_plugin(MYSQL *mysql,
plugin
=
NULL
;
}
else
plugin
=
add_plugin
(
mysql
,
plugin
,
0
,
0
,
0
);
plugin
=
add_plugin
(
mysql
,
plugin
,
0
,
0
,
unused
);
pthread_mutex_unlock
(
&
LOCK_load_client_plugin
);
return
plugin
;
...
...
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