From 740e36eab98d679387fea60cd642591a69ce809f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 21 Sep 2016 17:59:50 -0700 Subject: fix use of endOfFunction in an uninitialized state in wasm-binary --- src/wasm-binary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 9dd0d60d6..bbfde5b21 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1567,7 +1567,7 @@ public: std::vector functions; // we store functions here before wasm.addFunction after we know their names std::map> functionCalls; // at index i we have all calls to the defined function i Function* currFunction = nullptr; - size_t endOfFunction; + Index endOfFunction = -1; // before we see a function (like global init expressions), there is no end of function to check void readFunctions() { if (debug) std::cerr << "== readFunctions" << std::endl; -- cgit v1.2.3