summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_conf_file.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-10-29 14:53:58 +0000
committerSergey Kandaurov <pluknet@nginx.com>2020-10-29 14:53:58 +0000
commit6f73d24061261884b1c2191629d4f1ced8740d82 (patch)
tree883780cf53de409e2ccbd93b8ec4d7e2c566a20e /src/core/ngx_conf_file.c
parentc3e8e59a55c4bd144dec6ca1c55f06f8d509ec50 (diff)
parentdb65797133842f3f632460e6a00f5f0ac901cd5f (diff)
downloadnginx-6f73d24061261884b1c2191629d4f1ced8740d82.tar.gz
nginx-6f73d24061261884b1c2191629d4f1ced8740d82.tar.bz2
Merged with the default branch.
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r--src/core/ngx_conf_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index 6d1629e9b..fec7bb83a 100644
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -1137,7 +1137,7 @@ ngx_conf_set_keyval_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
a = (ngx_array_t **) (p + cmd->offset);
- if (*a == NULL) {
+ if (*a == NGX_CONF_UNSET_PTR || *a == NULL) {
*a = ngx_array_create(cf->pool, 4, sizeof(ngx_keyval_t));
if (*a == NULL) {
return NGX_CONF_ERROR;