aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-01 12:05:55 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-01 12:05:55 +0000
commitca0bdd3e95e83d2eab9a9c6fe3a1f7a9f302a608 (patch)
tree627cd2cf68e33609a3150d287e75ad030c8ead34 /src
parenta2883a66df626c4de3957e42f4fb5181ba7848c1 (diff)
downloadnginx-ca0bdd3e95e83d2eab9a9c6fe3a1f7a9f302a608.tar.gz
nginx-ca0bdd3e95e83d2eab9a9c6fe3a1f7a9f302a608.zip
change ngx_conf_merge_ptr_value() and update fastcgi_catch_stderr
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_conf_file.h4
-rw-r--r--src/http/modules/ngx_http_fastcgi_module.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h
index 2e91d0b8c..c3e3e9a91 100644
--- a/src/core/ngx_conf_file.h
+++ b/src/core/ngx_conf_file.h
@@ -257,8 +257,8 @@ char *ngx_conf_check_num_bounds(ngx_conf_t *cf, void *post, void *data);
}
#define ngx_conf_merge_ptr_value(conf, prev, default) \
- if (conf == NULL) { \
- conf = (prev == NULL) ? default : prev; \
+ if (conf == NGX_CONF_UNSET_PTR) { \
+ conf = (prev == NGX_CONF_UNSET_PTR) ? default : prev; \
}
#define ngx_conf_merge_uint_value(conf, prev, default) \
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c
index c1ce79ce7..ac14d75ce 100644
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -1640,7 +1640,6 @@ ngx_http_fastcgi_create_loc_conf(ngx_conf_t *cf)
* conf->upstream.hide_headers_hash = { NULL, 0 };
* conf->upstream.hide_headers = NULL;
* conf->upstream.pass_headers = NULL;
- * conf->upstream.catch_stderr = NULL;
* conf->upstream.schema = { 0, NULL };
* conf->upstream.uri = { 0, NULL };
* conf->upstream.location = NULL;
@@ -1675,6 +1674,8 @@ ngx_http_fastcgi_create_loc_conf(ngx_conf_t *cf)
/* "fastcgi_cyclic_temp_file" is disabled */
conf->upstream.cyclic_temp_file = 0;
+ conf->catch_stderr = NGX_CONF_UNSET_PTR;
+
return conf;
}