]> git.kaiwu.me - nginx.git/commitdiff
r1453 merge:
authorIgor Sysoev <igor@sysoev.ru>
Sun, 23 Sep 2007 19:15:42 +0000 (19:15 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 23 Sep 2007 19:15:42 +0000 (19:15 +0000)
change ngx_conf_merge_ptr_value() and update fastcgi_catch_stderr

src/core/ngx_conf_file.h
src/http/modules/ngx_http_fastcgi_module.c

index 7d5112919daf1de84722e8561f0c973f231944e2..c065384b08b4445e75a8258dc732c96944af4a61 100644 (file)
@@ -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)                       \
index c1ce79ce7c6cf8e57cc99809628218940b95270a..ac14d75cebb89d2718b4e005dab067091b4e5867 100644 (file)
@@ -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;
 }