]> granicus.if.org Git - apache/commitdiff
s/cont/pool/
authorDavid Reid <dreid@apache.org>
Sat, 7 Jul 2001 16:21:53 +0000 (16:21 +0000)
committerDavid Reid <dreid@apache.org>
Sat, 7 Jul 2001 16:21:53 +0000 (16:21 +0000)
Bring this back in line with changes to APR.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89511 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_autoindex.c

index 660bfa022fbab4158adf1f42d8bb1d0984c6382e..649f5053ecc5a58e76b8e2e8ca6c83a79bf5fa4a 100644 (file)
@@ -224,14 +224,14 @@ static void push_item(apr_array_header_t *arr, char *type, const char *to,
     }
 
     p->type = type;
-    p->data = data ? apr_pstrdup(arr->cont, data) : NULL;
-    p->apply_path = apr_pstrcat(arr->cont, path, "*", NULL);
+    p->data = data ? apr_pstrdup(arr->pool, data) : NULL;
+    p->apply_path = apr_pstrcat(arr->pool, path, "*", NULL);
 
     if ((type == BY_PATH) && (!ap_is_matchexp(to))) {
-       p->apply_to = apr_pstrcat(arr->cont, "*", to, NULL);
+       p->apply_to = apr_pstrcat(arr->pool, "*", to, NULL);
     }
     else if (to) {
-       p->apply_to = apr_pstrdup(arr->cont, to);
+       p->apply_to = apr_pstrdup(arr->pool, to);
     }
     else {
        p->apply_to = NULL;
@@ -325,13 +325,13 @@ static const char *add_desc(cmd_parms *cmd, void *d, const char *desc,
                             || apr_is_fnmatch(to));
     if (desc_entry->wildcards) {
        prefix = desc_entry->full_path ? "*/" : "*";
-       desc_entry->pattern = apr_pstrcat(dcfg->desc_list->cont,
+       desc_entry->pattern = apr_pstrcat(dcfg->desc_list->pool,
                                         prefix, to, "*", NULL);
     }
     else {
-       desc_entry->pattern = apr_pstrdup(dcfg->desc_list->cont, to);
+       desc_entry->pattern = apr_pstrdup(dcfg->desc_list->pool, to);
     }
-    desc_entry->description = apr_pstrdup(dcfg->desc_list->cont, desc);
+    desc_entry->description = apr_pstrdup(dcfg->desc_list->pool, desc);
     return NULL;
 }