diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-02-23 00:34:57 +0000 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-03-05 23:09:29 +0000 |
commit | 353d2d055798f7d1625c549a27062a6ca3a415db (patch) | |
tree | 260f5e6df89c8ee09ffbb2bd4d54c2929d58cb80 | |
parent | 4eb008bb17f37f6dacfb101fe0a686bc10114b9d (diff) | |
download | unit-353d2d055798f7d1625c549a27062a6ca3a415db.tar.gz unit-353d2d055798f7d1625c549a27062a6ca3a415db.tar.bz2 |
Var: Remove a dead assignment in nxt_var_interpreter()
p is not used again before returning from the function.
Found by the clang static analyser.
Reviewed-by: Zhidao Hong <z.hong@f5.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r-- | src/nxt_var.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_var.c b/src/nxt_var.c index 2600371b..2328d4ec 100644 --- a/src/nxt_var.c +++ b/src/nxt_var.c @@ -566,7 +566,7 @@ nxt_var_interpreter(nxt_task_t *task, nxt_tstr_state_t *state, } if (last != var->length) { - p = nxt_cpymem(p, &src[last], var->length - last); + nxt_cpymem(p, &src[last], var->length - last); } return NXT_OK; |