[njs] Fixed compilation with gcc.
Dmitry Volyntsev
xeioex at nginx.com
Tue Mar 3 17:36:47 UTC 2020
details: https://hg.nginx.org/njs/rev/65f4b11e3302
branches:
changeset: 1349:65f4b11e3302
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Tue Mar 03 20:14:48 2020 +0300
description:
Fixed compilation with gcc.
diffstat:
src/njs_fs.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r c5c6aab76bb4 -r 65f4b11e3302 src/njs_fs.c
--- a/src/njs_fs.c Tue Mar 03 19:00:54 2020 +0300
+++ b/src/njs_fs.c Tue Mar 03 20:14:48 2020 +0300
@@ -818,6 +818,9 @@ njs_fs_mode(njs_vm_t *vm, njs_value_t *v
uint32_t u32;
njs_int_t ret;
+ /* GCC complains about uninitialized u32. */
+ u32 = 0;
+
if (njs_is_undefined(value)) {
return default_mode;
}
More information about the nginx-devel
mailing list