src: fix use of uninitialized variable
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
src
Description of change
Alternative to https://github.com/nodejs/node/pull/9280 ... The proposed fix in 9280 breaks the calculation algorithm.
Variable was uninitialized in 72547fe2 Initialize the variable and add a static_check
/cc @bnoordhuis @addaleax