(ftpfs_get_proxy_host_and_port): ret rid of host name duplcation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2019-04-07 14:43:47 +03:00
parent a16db591e3
commit 987b4e3234

View File

@ -832,7 +832,8 @@ ftpfs_get_proxy_host_and_port (const char *proxy, char **host, int *port)
vfs_path_element_t *path_element;
path_element = vfs_url_split (proxy, FTP_COMMAND_PORT, URL_USE_ANONYMOUS);
*host = g_strdup (path_element->host);
*host = path_element->host;
path_element->host = NULL;
*port = path_element->port;
vfs_path_element_free (path_element);
}