FreeBSD Bugzilla – Attachment 147564 Details for
Bug 193841
[PATCH] databases/mysql55-client fails to build on armv6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-sql-common__client_plugin.c
extra-arm-patch-sql-common__client_plugin.c (text/x-csrc), 1.39 KB, created by
Mikael Urankar
on 2014-09-22 17:28:50 UTC
(
hide
)
Description:
patch-sql-common__client_plugin.c
Filename:
MIME Type:
Creator:
Mikael Urankar
Created:
2014-09-22 17:28:50 UTC
Size:
1.39 KB
patch
obsolete
>--- sql-common/client_plugin.c.orig 2014-09-22 09:23:23 UTC >+++ sql-common/client_plugin.c >@@ -233,11 +233,13 @@ > { > MYSQL mysql; > struct st_mysql_client_plugin **builtin; >+ va_list unused; > > if (initialized) > return 0; > > bzero(&mysql, sizeof(mysql)); /* dummy mysql for set_mysql_extended_error */ >+ bzero(&unused, sizeof(unused)); /* suppress uninitialized-value warnings */ > > pthread_mutex_init(&LOCK_load_client_plugin, MY_MUTEX_INIT_SLOW); > init_alloc_root(&mem_root, 128, 128); >@@ -249,7 +251,7 @@ > 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); > >@@ -293,9 +295,12 @@ > mysql_client_register_plugin(MYSQL *mysql, > struct st_mysql_client_plugin *plugin) > { >+ va_list unused; > if (is_not_initialized(mysql, plugin->name)) > return NULL; > >+ bzero(&unused, sizeof(unused)); /* suppress uninitialized-value warnings */ >+ > pthread_mutex_lock(&LOCK_load_client_plugin); > > /* make sure the plugin wasn't loaded meanwhile */ >@@ -307,7 +312,7 @@ > 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 193841
: 147564 |
147565
|
147590