summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2021-11-05 11:19:15 +0800
committerZhidao HONG <z.hong@f5.com>2021-11-05 11:19:15 +0800
commit1260add0f5cacd5849640f7ee335f3ace97ade2c (patch)
tree82c0ec2468f835d257ca060a6b2a212b2f40fe44 /src/nxt_router.c
parent40ad333a9c938f73621af0f32b0f09ab634c26c0 (diff)
downloadunit-1260add0f5cacd5849640f7ee335f3ace97ade2c.tar.gz
unit-1260add0f5cacd5849640f7ee335f3ace97ade2c.tar.bz2
HTTP: removed surplus check for r->args is not NULL.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 9317d752..1dd7f8e5 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -5453,8 +5453,8 @@ nxt_router_prepare_msg(nxt_task_t *task, nxt_http_request_t *r,
*p++ = '\0';
}
- req->query_length = r->args != NULL ? (uint32_t) r->args->length : 0;
- if (r->args != NULL && r->args->start != NULL) {
+ req->query_length = (uint32_t) r->args->length;
+ if (r->args->start != NULL) {
query_pos = nxt_pointer_to(target_pos,
r->args->start - r->target.start);