[Commits] Rev 2911: lpbug#700982 - Non-portable code in client plugin (fails on ARM). in http://bazaar.launchpad.net/~maria-captains/maria/5.2/

serg at askmonty.org serg at askmonty.org
Wed Jan 12 13:27:43 EET 2011


At http://bazaar.launchpad.net/~maria-captains/maria/5.2/

------------------------------------------------------------
revno: 2911
revision-id: sergii at pisem.net-20110112112603-sfcfln6gs9pzyzam
parent: sergii at pisem.net-20110112111121-73scgzh8ybojmy1o
fixes bug(s): https://launchpad.net/bugs/700982
committer: Sergei Golubchik <sergii at pisem.net>
branch nick: 5.2
timestamp: Wed 2011-01-12 12:26:03 +0100
message:
  lpbug#700982 - Non-portable code in client plugin (fails on ARM).
  don't pass NULL as an argument where va_list is expected.
-------------- next part --------------
=== modified file 'sql-common/client_plugin.c'
--- a/sql-common/client_plugin.c	2010-03-29 15:13:53 +0000
+++ b/sql-common/client_plugin.c	2011-01-12 11:26:03 +0000
@@ -239,6 +239,7 @@ int mysql_client_plugin_init()
 {
   MYSQL mysql;
   struct st_mysql_client_plugin **builtin;
+  va_list unused;
 
   if (initialized)
     return 0;
@@ -255,7 +256,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 +302,8 @@ struct st_mysql_client_plugin *
 mysql_client_register_plugin(MYSQL *mysql,
                              struct st_mysql_client_plugin *plugin)
 {
+  va_list unused;
+
   if (is_not_initialized(mysql, plugin->name))
     return NULL;
 
@@ -315,7 +318,7 @@ mysql_client_register_plugin(MYSQL *mysq
     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;



More information about the commits mailing list