mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(vfs_path_from_str_uri_parser): fix detection of relative path.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
cebede5e84
commit
8715c41a47
@ -436,11 +436,12 @@ vfs_path_from_str_uri_parser (char *path, vfs_path_flag_t flags)
|
||||
{
|
||||
vfs_path_t *vpath;
|
||||
vfs_path_element_t *element;
|
||||
|
||||
char *url_delimiter;
|
||||
|
||||
(void) flags;
|
||||
|
||||
vpath = vfs_path_new ();
|
||||
vpath->relative = (flags & VPF_NO_CANON) != 0;
|
||||
vpath->relative = path != NULL && !IS_PATH_SEP (*path);
|
||||
|
||||
while ((url_delimiter = g_strrstr (path, VFS_PATH_URL_DELIMITER)) != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user