From 22ec908443eec3b7e1112562c089398692fb5feb Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 4 Feb 2016 16:36:31 -0800 Subject: fix import parsing --- src/wasm-s-parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 64dc6a454..dc946fc3b 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -229,7 +229,7 @@ class SExpressionWasmBuilder { public: // Assumes control of and modifies the input. - SExpressionWasmBuilder(AllocatingModule& wasm, Element& module, std::function onError, bool debug=false) : wasm(wasm), allocator(wasm.allocator), onError(onError), debug(debug) { + SExpressionWasmBuilder(AllocatingModule& wasm, Element& module, std::function onError, bool debug=false) : wasm(wasm), allocator(wasm.allocator), onError(onError), importCounter(0), debug(debug) { assert(module[0]->str() == MODULE); functionCounter = 0; for (unsigned i = 1; i < module.size(); i++) { -- cgit v1.2.3