Commit b6c038d4 authored by Tor Didriksen's avatar Tor Didriksen

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';
parent c5427172
...@@ -2671,7 +2671,7 @@ You can turn off this feature to get a quicker startup with -A\n\n"); ...@@ -2671,7 +2671,7 @@ You can turn off this feature to get a quicker startup with -A\n\n");
mysql_free_result(fields); mysql_free_result(fields);
break; break;
} }
field_names[i][num_fields*2]= '\0'; field_names[i][num_fields*2]= NULL;
j=0; j=0;
while ((sql_field=mysql_fetch_field(fields))) while ((sql_field=mysql_fetch_field(fields)))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment