Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 3516:dd1570b6f237
ngx_str_set() and ngx_str_null()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 14 May 2010 09:56:37 +0000 |
parents | 76d252724db5 |
children | a4ee4a075ac5 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Fri May 14 09:55:33 2010 +0000 +++ b/src/http/ngx_http_upstream.c Fri May 14 09:56:37 2010 +0000 @@ -1800,8 +1800,7 @@ } 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) {