aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_conf_file.h')
-rw-r--r--src/core/ngx_conf_file.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h
index eb5478e61..eb9e63b51 100644
--- a/src/core/ngx_conf_file.h
+++ b/src/core/ngx_conf_file.h
@@ -179,6 +179,11 @@ char *ngx_conf_check_num_bounds(ngx_conf_t *cf, void *post, void *data);
conf = default; \
}
+#define ngx_conf_init_ptr_value(conf, default) \
+ if (conf == (void *) NGX_CONF_UNSET) { \
+ conf = default; \
+ }
+
#define ngx_conf_init_unsigned_value(conf, default) \
if (conf == (unsigned) NGX_CONF_UNSET) { \
conf = default; \