summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-08-13 03:45:54 +0300
committerValentin Bartenev <vbart@nginx.com>2020-08-13 03:45:54 +0300
commita58f224e26cf3bcb79adbd69ccc2c67733fe372f (patch)
tree3b71c309b3d5488dc62478ffe9e0cd138019ff66
parent93146616cf56a94fc2979cb978c7b451c5592594 (diff)
downloadunit-a58f224e26cf3bcb79adbd69ccc2c67733fe372f.tar.gz
unit-a58f224e26cf3bcb79adbd69ccc2c67733fe372f.tar.bz2
Fixed typo in return value check.
Found by Coverity (CID 361277).
-rw-r--r--src/nxt_http_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c
index 346629c3..0b2103cd 100644
--- a/src/nxt_http_route.c
+++ b/src/nxt_http_route.c
@@ -1294,7 +1294,7 @@ nxt_http_route_pattern_slice(nxt_array_t *slices,
}
slice = nxt_array_add(slices);
- if (nxt_slow_path(slices == NULL)) {
+ if (nxt_slow_path(slice == NULL)) {
return NXT_ERROR;
}