mysql: yet another fix for gcc7
This commit is contained in:
parent
a0ba65cf26
commit
3a2991068b
1 changed files with 12 additions and 0 deletions
12
srcpkgs/mysql/patches/gcc7-compare-pointer.patch
Normal file
12
srcpkgs/mysql/patches/gcc7-compare-pointer.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- sql-common/client_authentication.cc 2016-03-03 16:35:33.000000000 +0100
|
||||
+++ sql-common/client_authentication.cc 2017-05-09 16:14:10.298254686 +0200
|
||||
@@ -83,8 +83,7 @@
|
||||
FILE *pub_key_file= NULL;
|
||||
|
||||
if (mysql->options.extension != NULL &&
|
||||
- mysql->options.extension->server_public_key_path != NULL &&
|
||||
- mysql->options.extension->server_public_key_path != '\0')
|
||||
+ mysql->options.extension->server_public_key_path != NULL)
|
||||
{
|
||||
pub_key_file= fopen(mysql->options.extension->server_public_key_path,
|
||||
"r");
|
Loading…
Reference in a new issue