summaryrefslogtreecommitdiff
path: root/frontends/ast/simplify.cc
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r--frontends/ast/simplify.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index cc9bbd23..5eb173c9 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -2102,9 +2102,9 @@ AstNode *AstNode::readmem(bool is_readmemh, std::string mem_filename, AstNode *m
AstNode *block = new AstNode(AST_BLOCK);
AstNode *meminit = nullptr;
- int next_meminit_cursor;
+ int next_meminit_cursor=0;
vector<State> meminit_bits;
- int meminit_size;
+ int meminit_size=0;
std::ifstream f;
f.open(mem_filename.c_str());