summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-05-14 09:56:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-05-14 09:56:37 +0000
commit05b1a8f1e3595beab4397e25c2a6db9d832a6a97 (patch)
tree282923e87cbaf9d634dab4a7c69ce85d602effcf /src/http/ngx_http_upstream.c
parent328df7a5cc91180fef3b1b58129e14bc79bef80b (diff)
downloadnginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.gz
nginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.bz2
ngx_str_set() and ngx_str_null()
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 522a60536..e6bef3c04 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1800,8 +1800,7 @@ ngx_http_upstream_process_headers(ngx_http_request_t *r, ngx_http_upstream_t *u)
}
uri = &u->headers_in.x_accel_redirect->value;
- args.len = 0;
- args.data = NULL;
+ ngx_str_null(&args);
flags = NGX_HTTP_LOG_UNSAFE;
if (ngx_http_parse_unsafe_uri(r, uri, &args, &flags) != NGX_OK) {