summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-12-29 18:43:55 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-12-29 18:43:55 +0300
commit4c4981f992f8b6252e1547f80d55904078cec992 (patch)
tree2ef52670f7ca6cfae01426ff163ed0a58d0778b0 /src/nxt_http_request.c
parentbcbe6df8af4a9f20491d911d367da1b1e945d522 (diff)
downloadunit-4c4981f992f8b6252e1547f80d55904078cec992.tar.gz
unit-4c4981f992f8b6252e1547f80d55904078cec992.tar.bz2
Using correct pointer in test operation.
Found by Coverity (CID 215687).
Diffstat (limited to 'src/nxt_http_request.c')
-rw-r--r--src/nxt_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index eab61814..808cd75b 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -92,7 +92,7 @@ nxt_http_request_create(nxt_task_t *task)
}
r->resp.fields = nxt_list_create(mp, 8, sizeof(nxt_http_field_t));
- if (nxt_slow_path(r == NULL)) {
+ if (nxt_slow_path(r->resp.fields == NULL)) {
goto fail;
}