lib/path: clarify conditions for creating converters

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-09-13 09:26:53 +02:00
parent ffd6fd11f7
commit 07e24c0289
1 changed files with 2 additions and 2 deletions

View File

@ -896,8 +896,8 @@ vfs_path_element_clone (const vfs_path_element_t *element)
new_element->vfs_prefix = g_strdup (element->vfs_prefix);
#ifdef HAVE_CHARSET
new_element->encoding = g_strdup (element->encoding);
if (vfs_path_element_need_cleanup_converter (element) && new_element->encoding != NULL)
new_element->dir.converter = str_crt_conv_from (new_element->encoding);
if (vfs_path_element_need_cleanup_converter (element) && element->encoding != NULL)
new_element->dir.converter = str_crt_conv_from (element->encoding);
else
new_element->dir.converter = element->dir.converter;
#endif