[njs] Fixed compilation by gcc 4.2.
Dmitry Volyntsev
xeioex at nginx.com
Fri Jul 20 13:35:53 UTC 2018
details: http://hg.nginx.org/njs/rev/dc7cfa57a9f4
branches:
changeset: 562:dc7cfa57a9f4
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Fri Jul 20 15:59:59 2018 +0300
description:
Fixed compilation by gcc 4.2.
diffstat:
nxt/nxt_dtoa.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 0f9c060a0198 -r dc7cfa57a9f4 nxt/nxt_dtoa.c
--- a/nxt/nxt_dtoa.c Thu Jul 19 18:11:52 2018 +0300
+++ b/nxt/nxt_dtoa.c Fri Jul 20 15:59:59 2018 +0300
@@ -106,6 +106,9 @@ nxt_grisu2_gen(nxt_diyfp_t W, nxt_diyfp_
p = start;
+ /* GCC 4.2 complains about uninitialized d. */
+ d = 0;
+
kappa = nxt_dec_count(p1);
while (kappa > 0) {
More information about the nginx-devel
mailing list