Commit cf11b8b3 authored by jfb's avatar jfb Committed by Commit bot

NFC: use array init instead of memset

Dropped the change from my previous CL which bisecting Windows failure.

R= titzer@chromium.org

Review URL: https://codereview.chromium.org/1760243002

Cr-Commit-Position: refs/heads/master@{#34512}
parent bcfa4003
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment