--- a/application/window.c Wed Nov 13 22:10:03 2024 +0100 +++ b/application/window.c Thu Nov 14 17:25:23 2024 +0100 @@ -284,6 +284,11 @@ static UiPathElm* dav_get_pathelm(const char *full_path, size_t len, size_t *ret_nelm, void* data) { + if (len == 0) { + *ret_nelm = 0; + return NULL; + } + cxstring fpath = cx_strn(full_path, len); int protocol = 0; if (cx_strcaseprefix(fpath, CX_STR("http://"))) {