mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(vfs_path_build_url_params_str): minor refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
9e039f66d1
commit
5a67afc812
@ -1552,12 +1552,9 @@ vfs_path_build_url_params_str (const vfs_path_element_t * element, gboolean keep
|
|||||||
g_string_append (buffer, element->host);
|
g_string_append (buffer, element->host);
|
||||||
if (element->ipv6)
|
if (element->ipv6)
|
||||||
g_string_append_c (buffer, ']');
|
g_string_append_c (buffer, ']');
|
||||||
}
|
|
||||||
|
|
||||||
if ((element->port) != 0 && (element->host != NULL))
|
if (element->port != 0)
|
||||||
{
|
g_string_append_printf (buffer, ":%d", element->port);
|
||||||
g_string_append_c (buffer, ':');
|
|
||||||
g_string_append_printf (buffer, "%d", element->port);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buffer->len != 0)
|
if (buffer->len != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user