[njs] Fixed building by GCC 4.2.

Dmitry Volyntsev xeioex at nginx.com
Wed Jun 7 12:45:10 UTC 2017


details:   http://hg.nginx.org/njs/rev/7196ac334d64
branches:  
changeset: 353:7196ac334d64
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Jun 07 15:45:01 2017 +0300
description:
Fixed building by GCC 4.2.

diffstat:

 njs/njs_object.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r fb703c8f4292 -r 7196ac334d64 njs/njs_object.c
--- a/njs/njs_object.c	Wed Jun 07 14:12:23 2017 +0300
+++ b/njs/njs_object.c	Wed Jun 07 15:45:01 2017 +0300
@@ -337,6 +337,7 @@ njs_object_keys(njs_vm_t *vm, njs_value_
         return NXT_ERROR;
     }
 
+    array = NULL;
     keys_length = 0;
     array_length = 0;
 


More information about the nginx-devel mailing list