diff options
author | Daniel Black <daniel.black@au.ibm.com> | 2017-07-14 13:37:37 +1000 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2017-07-14 10:57:57 +0400 |
commit | 7338d3f221e33042dfcf5c1a245317aa7cb015a7 (patch) | |
tree | fdee0f13eba3246e3bbda0db4cfff03cb7515a1c /client/mysql.cc | |
parent | 27bc13b7a2f99a6011a5081670b320c685dde443 (diff) | |
download | mariadb-git-7338d3f221e33042dfcf5c1a245317aa7cb015a7.tar.gz |
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';
Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index a965ced89c6..ca586a5590f 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))) { |