From 4c4981f992f8b6252e1547f80d55904078cec992 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 29 Dec 2017 18:43:55 +0300 Subject: Using correct pointer in test operation. Found by Coverity (CID 215687). --- src/nxt_http_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nxt_http_request.c') 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; } -- cgit