[nginx] Fixed incorrect ngx_str_set() usage, broken in c82b2e020...
Maxim Dounin
mdounin at mdounin.ru
Sat Dec 7 13:29:08 UTC 2013
details: http://hg.nginx.org/nginx/rev/58716fd3bd2d
branches:
changeset: 5462:58716fd3bd2d
user: Piotr Sikora <piotr at cloudflare.com>
date: Fri Dec 06 16:00:49 2013 -0800
description:
Fixed incorrect ngx_str_set() usage, broken in c82b2e020b9f.
Found by Coverity Scan CID 1135525.
Signed-off-by: Piotr Sikora <piotr at cloudflare.com>
diffstat:
src/http/modules/ngx_http_uwsgi_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c
--- a/src/http/modules/ngx_http_uwsgi_module.c
+++ b/src/http/modules/ngx_http_uwsgi_module.c
@@ -603,7 +603,7 @@ ngx_http_uwsgi_eval(ngx_http_request_t *
url.url.len -= add;
} else {
- ngx_str_set(&u->schema, (u_char *) "uwsgi://");
+ ngx_str_set(&u->schema, "uwsgi://");
}
url.no_resolve = 1;
More information about the nginx-devel
mailing list