summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-02-04 16:36:31 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-02-05 12:44:39 -0800
commit22ec908443eec3b7e1112562c089398692fb5feb (patch)
treec2bfd7828dffe00ba95cc35492127bc777e2e284 /src
parent323b61318d81a140584aae22fad102209b42294a (diff)
downloadbinaryen-22ec908443eec3b7e1112562c089398692fb5feb.tar.gz
binaryen-22ec908443eec3b7e1112562c089398692fb5feb.tar.bz2
binaryen-22ec908443eec3b7e1112562c089398692fb5feb.zip
fix import parsing
Diffstat (limited to 'src')
-rw-r--r--src/wasm-s-parser.h2
1 files changed, 1 insertions, 1 deletions
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<void ()> onError, bool debug=false) : wasm(wasm), allocator(wasm.allocator), onError(onError), debug(debug) {
+ SExpressionWasmBuilder(AllocatingModule& wasm, Element& module, std::function<void ()> 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++) {