Welcome! Log In Create A New Profile

Advanced

[njs] Fixed compilation with gcc.

Dmitry Volyntsev
March 03, 2020 12:38PM
details: https://hg.nginx.org/njs/rev/65f4b11e3302
branches:
changeset: 1349:65f4b11e3302
user: Dmitry Volyntsev <xeioex@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;
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed compilation with gcc.

Dmitry Volyntsev 91 March 03, 2020 12:38PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready