dav_resource *parent_resource;
apr_status_t rv;
char *dirpath;
- char *testroot;
- char *testpath;
+ const char *testroot;
+ const char *testpath;
/* If given resource is root, then there is no parent.
* Unless we can retrieve the filepath root, this is
* no path info remains, then we also fail.
*/
testpath = ctx->pathname;
- rv = apr_filepath_root(&testroot, &testpath, ctx->pool);
+ rv = apr_filepath_root(&testroot, &testpath, 0, ctx->pool);
if ((rv != APR_SUCCESS && rv != APR_ERELATIVE)
|| !testpath || !*testpath) {
*result_parent = NULL;