aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/ast')
-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 cc9bbd237..5eb173c9a 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());