Index: src/wasm/module-decoder.cc |
diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc |
index 4653e1d44bd7b53b145afb4bc8fbf8843231f6af..01df66a2dc3b363babfeedcea0d090f69650ddb5 100644 |
--- a/src/wasm/module-decoder.cc |
+++ b/src/wasm/module-decoder.cc |
@@ -51,8 +51,7 @@ class ModuleDecoder : public Decoder { |
module->mem_external = false; |
module->origin = origin_; |
- bool sections[kMaxModuleSectionCode]; |
- memset(sections, 0, sizeof(sections)); |
+ bool sections[kMaxModuleSectionCode] = {false}; |
const byte* pos = pc_; |
uint32_t magic_word = consume_u32("wasm magic"); |