diff options
Diffstat (limited to 'sql/sql_servers.cc')
-rw-r--r-- | sql/sql_servers.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_servers.cc b/sql/sql_servers.cc index 9b944662545..297972f6dc4 100644 --- a/sql/sql_servers.cc +++ b/sql/sql_servers.cc @@ -320,7 +320,8 @@ get_server_from_table_to_cache(TABLE *table) table->use_all_columns(); /* get each field into the server struct ptr */ - server->server_name= get_field(&mem, table->field[0]); + ptr= get_field(&mem, table->field[0]); + server->server_name= ptr ? ptr : blank; server->server_name_length= (uint) strlen(server->server_name); ptr= get_field(&mem, table->field[1]); server->host= ptr ? ptr : blank; |