[njs] Removed dead store introduced in fd956d2a25a3.

Dmitry Volyntsev xeioex at nginx.com
Sat May 6 03:11:11 UTC 2023


details:   https://hg.nginx.org/njs/rev/bc78369be278
branches:  
changeset: 2108:bc78369be278
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri May 05 20:08:58 2023 -0700
description:
Removed dead store introduced in fd956d2a25a3.

Found by Clang static analyzer.

diffstat:

 external/njs_query_string_module.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 40af42ad829b -r bc78369be278 external/njs_query_string_module.c
--- a/external/njs_query_string_module.c	Fri May 05 20:08:57 2023 -0700
+++ b/external/njs_query_string_module.c	Fri May 05 20:08:58 2023 -0700
@@ -157,7 +157,6 @@ njs_query_string_decode(njs_vm_t *vm, nj
 
     cp = 0;
     length = 0;
-    ret = NJS_ERROR;
 
     p = start;
     end = p + size;


More information about the nginx-devel mailing list