[njs] Added forgotten 'break' statement missed in 27bb9caf186c.

Alexander Borisov alexander.borisov at nginx.com
Thu Sep 17 10:11:41 UTC 2020


details:   https://hg.nginx.org/njs/rev/0cfc928cc1e4
branches:  
changeset: 1524:0cfc928cc1e4
user:      Alexander Borisov <alexander.borisov at nginx.com>
date:      Thu Sep 17 13:10:51 2020 +0300
description:
Added forgotten 'break' statement missed in 27bb9caf186c.

Found by Coverity (CID 1466731).

diffstat:

 src/njs_buffer.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 27bb9caf186c -r 0cfc928cc1e4 src/njs_buffer.c
--- a/src/njs_buffer.c	Wed Sep 16 17:22:01 2020 +0300
+++ b/src/njs_buffer.c	Thu Sep 17 13:10:51 2020 +0300
@@ -2133,6 +2133,8 @@ njs_buffer_prototype_swap(njs_vm_t *vm, 
             *((uint32_t *) p) = njs_bswap_u32(*((uint32_t *) p));
         }
 
+        break;
+
     case 8:
     default:
         for (; p < end; p += 8) {


More information about the nginx-devel mailing list