(canonicalize_pathname_custom): fix --disable-charset build broken in 8f723b8

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-10-19 09:35:19 +02:00
parent a018086f48
commit 289b9c85be

View File

@ -1040,7 +1040,9 @@ canonicalize_pathname_custom (char *path, canon_path_flags_t flags)
#endif /* HAVE_CHARSET */
else
{
#ifdef HAVE_CHARSET
last:
#endif /* HAVE_CHARSET */
if (s >= lpath + url_delim_len
&& strncmp (s - url_delim_len, VFS_PATH_URL_DELIMITER, url_delim_len) == 0)
*s = '\0';