summaryrefslogtreecommitdiff
path: root/src/wat-writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wat-writer.cc')
-rw-r--r--src/wat-writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wat-writer.cc b/src/wat-writer.cc
index 99d5901e..ea70edb3 100644
--- a/src/wat-writer.cc
+++ b/src/wat-writer.cc
@@ -1722,7 +1722,7 @@ void WatWriter::WriteInlineExports(ExternalKind kind, Index index) {
}
bool WatWriter::IsInlineExport(const Export& export_) {
- Index index;
+ Index index{};
switch (export_.kind) {
case ExternalKind::Func:
index = module.GetFuncIndex(export_.var);