Permalink
Browse files

Allocate psgi_app at psgi_pre_config

For the case applications were defined in .htaccess only
  • Loading branch information...
1 parent 71c91fb commit 85cae0509d82790deb80b84207a2db17d4b00cea @spiritloose committed Oct 18, 2009
Showing with 2 additions and 3 deletions.
  1. +2 −3 mod_psgi.c
View
@@ -692,6 +692,8 @@ psgi_pre_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp)
ap_mpm_query(AP_MPMQ_IS_FORKED, &psgi_multiprocess);
psgi_multiprocess = (psgi_multiprocess != AP_MPMQ_NOT_SUPPORTED);
+ psgi_apps = apr_hash_make(pconf);
+
return OK;
}
@@ -750,9 +752,6 @@ static const char *cmd_psgi_app(cmd_parms *cmd, void *conf, const char *v)
{
psgi_dir_config *c = (psgi_dir_config *) conf;
c->file = (char *) apr_pstrdup(cmd->pool, v);
- if (psgi_apps == NULL) {
- psgi_apps = apr_hash_make(cmd->pool);
- }
apr_hash_set(psgi_apps, c->file, APR_HASH_KEY_STRING, c->file);
return NULL;
}

0 comments on commit 85cae05

Please sign in to comment.