summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2018-07-18 10:22:21 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2018-07-18 10:22:21 +0200
commitb6c038d4366d003ae00120c96e39a892e5d675c1 (patch)
tree52e4d8466ebe240a0409275333cbff0d4da90242 /client
parentc54271723c6f2f4e5b77cd8faf91e89412730209 (diff)
downloadmariadb-git-b6c038d4366d003ae00120c96e39a892e5d675c1.tar.gz
Fix build break with modern compilers:
client/mysql.cc: In function void build_completion_hash(bool, bool): client/mysql.cc:2674:37: error: invalid conversion from char to char* [-fpermissive] field_names[i][num_fields*2]= '\0';
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 8510361a54e..bc32a58f37e 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2671,7 +2671,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)))
{