Fixed typo in return value check.

Found by Coverity (CID 361277).
This commit is contained in:
Valentin Bartenev
2020-08-13 03:45:54 +03:00
parent 93146616cf
commit a58f224e26

View File

@@ -1294,7 +1294,7 @@ nxt_http_route_pattern_slice(nxt_array_t *slices,
} }
slice = nxt_array_add(slices); slice = nxt_array_add(slices);
if (nxt_slow_path(slices == NULL)) { if (nxt_slow_path(slice == NULL)) {
return NXT_ERROR; return NXT_ERROR;
} }