(vfs_path_from_str_uri_parser): fix detection of relative path.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2017-06-09 10:02:34 +03:00
parent cebede5e84
commit 8715c41a47
1 changed files with 3 additions and 2 deletions

View File

@ -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)
{