[njs] Fixed compilation error with gcc-11.

Dmitry Volyntsev xeioex at nginx.com
Wed Feb 24 16:59:04 UTC 2021


details:   https://hg.nginx.org/njs/rev/804afbc89677
branches:  
changeset: 1612:804afbc89677
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Feb 24 16:57:05 2021 +0000
description:
Fixed compilation error with gcc-11.

This closes #376 issue on Github.

diffstat:

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

diffs (14 lines):

diff -r 0efac7257447 -r 804afbc89677 src/njs_fs.c
--- a/src/njs_fs.c	Wed Feb 24 14:50:14 2021 +0000
+++ b/src/njs_fs.c	Wed Feb 24 16:57:05 2021 +0000
@@ -1373,8 +1373,8 @@ njs_fs_rmtree(njs_vm_t *vm, const char *
 
 
 static const char *
-njs_fs_path(njs_vm_t *vm, char *storage, const njs_value_t *src,
-    const char *prop_name)
+njs_fs_path(njs_vm_t *vm, char storage[NJS_MAX_PATH + 1],
+    const njs_value_t *src, const char *prop_name)
 {
     u_char              *p;
     njs_str_t           str;


More information about the nginx-devel mailing list