]> granicus.if.org Git - apache/commitdiff
Omitted this argument and const'ness. All looks well now.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 24 Jan 2002 15:27:46 +0000 (15:27 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 24 Jan 2002 15:27:46 +0000 (15:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92999 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/fs/repos.c

index 3e2f4711e409b976eaaa0669a339a913275a8c85..9baa1ac1156e5061eac63069a95a48373465f192 100644 (file)
@@ -735,8 +735,8 @@ static dav_error * dav_fs_get_parent_resource(const dav_resource *resource,
     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
@@ -744,7 +744,7 @@ static dav_error * dav_fs_get_parent_resource(const dav_resource *resource,
      * 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;