comparison src/core/ngx_conf_file.c @ 1701:40d004d95d88

*) now ngx_conf_set_str_array_slot() tests NGX_CONF_UNSET_PTR this fixes fastcgi_catch_stderr segfault introduced in r1453 *) ngx_http_upstream_hide_headers_hash() *) proxy/fastcgi pass_header/hide_header use ngx_http_upstream_hide_headers_hash()
author Igor Sysoev <igor@sysoev.ru>
date Sun, 09 Dec 2007 18:03:20 +0000
parents 022ec9420f80
children ade85ba31674
comparison
equal deleted inserted replaced
1700:7f3350b18e75 1701:40d004d95d88
932 ngx_array_t **a; 932 ngx_array_t **a;
933 ngx_conf_post_t *post; 933 ngx_conf_post_t *post;
934 934
935 a = (ngx_array_t **) (p + cmd->offset); 935 a = (ngx_array_t **) (p + cmd->offset);
936 936
937 if (*a == NULL) { 937 if (*a == NGX_CONF_UNSET_PTR) {
938 *a = ngx_array_create(cf->pool, 4, sizeof(ngx_str_t)); 938 *a = ngx_array_create(cf->pool, 4, sizeof(ngx_str_t));
939 if (*a == NULL) { 939 if (*a == NULL) {
940 return NGX_CONF_ERROR; 940 return NGX_CONF_ERROR;
941 } 941 }
942 } 942 }