summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_error.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-01-18 16:18:36 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-01-18 16:18:36 +0300
commit627b116c4db8d7b0b9cb4e15486bd2847d03ee8a (patch)
tree6e09a496354fc8cf0b082d7307af57d1f8f57509 /src/nxt_http_error.c
parent73eceb7e56a58d543db74d7c38244ed57313d1b3 (diff)
downloadunit-627b116c4db8d7b0b9cb4e15486bd2847d03ee8a.tar.gz
unit-627b116c4db8d7b0b9cb4e15486bd2847d03ee8a.tar.bz2
Testing correct value.
Diffstat (limited to '')
-rw-r--r--src/nxt_http_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_error.c b/src/nxt_http_error.c
index 65f8ba38..99d27903 100644
--- a/src/nxt_http_error.c
+++ b/src/nxt_http_error.c
@@ -37,7 +37,7 @@ nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r,
r->status = status;
r->resp.fields = nxt_list_create(r->mem_pool, 8, sizeof(nxt_http_field_t));
- if (nxt_slow_path(r == NULL)) {
+ if (nxt_slow_path(r->resp.fields == NULL)) {
goto fail;
}