aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_variables.h
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2017-08-01 14:28:33 +0300
committerRuslan Ermilov <ru@nginx.com>2017-08-01 14:28:33 +0300
commitb992f7259ba4763178f9d394b320bcc5de88818b (patch)
tree141e63c424d98f3e1e29702dbf1302c09b8cc90a /src/stream/ngx_stream_variables.h
parent83be971bc78c17fdaf254ea54d5166d4829f8b3e (diff)
downloadnginx-b992f7259ba4763178f9d394b320bcc5de88818b.tar.gz
nginx-b992f7259ba4763178f9d394b320bcc5de88818b.zip
Variables: macros for null variables.
No functional changes.
Diffstat (limited to 'src/stream/ngx_stream_variables.h')
-rw-r--r--src/stream/ngx_stream_variables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stream/ngx_stream_variables.h b/src/stream/ngx_stream_variables.h
index 815511154..4ead2a624 100644
--- a/src/stream/ngx_stream_variables.h
+++ b/src/stream/ngx_stream_variables.h
@@ -43,6 +43,8 @@ struct ngx_stream_variable_s {
ngx_uint_t index;
};
+#define ngx_stream_null_variable { ngx_null_string, NULL, NULL, 0, 0, 0 }
+
ngx_stream_variable_t *ngx_stream_add_variable(ngx_conf_t *cf, ngx_str_t *name,
ngx_uint_t flags);