blob: b62e192b691abdf2b6c80619a773b679051af590 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From https://github.com/MariaDB/server/commit/7338d3f221e33042dfcf5c1a245317aa7cb015a7
From: Daniel Black <daniel.black@au.ibm.com>
Date: Fri, 14 Jul 2017 13:37:37 +1000
Subject: [PATCH] client: mysql - fix type
field_names[x][y] is a pointer
client/mysql.cc: In function 'void build_completion_hash(bool, bool)':
client/mysql.cc:2855:37: error: invalid conversion from 'char' to 'char*' [-fpermissive]
field_names[i][num_fields*2]= '\0';
Bug: https://bugs.gentoo.org/645894
---
client/mysql.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/mysql.cc b/client/mysql.cc
index a965ced89c65..ca586a5590fb 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2852,7 +2852,7 @@ You can turn off this feature to get a quicker startup with -A\n\n");
mysql_free_result(fields);
break;
}
- field_names[i][num_fields*2]= '\0';
+ field_names[i][num_fields*2]= NULL;
j=0;
while ((sql_field=mysql_fetch_field(fields)))
{
|