Skip to content
Snippets Groups Projects
Verified Commit ebafd8f3 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Epilogue: always initialize M_.epilogue_names and M_.epilogue_var_list_

Ref. dynare!1688
parent 8baec1e0
Branches
Tags
No related merge requests found
...@@ -475,7 +475,11 @@ void ...@@ -475,7 +475,11 @@ void
Epilogue::writeOutput(ostream &output) const Epilogue::writeOutput(ostream &output) const
{ {
if (dynamic_def_table.empty()) if (dynamic_def_table.empty())
{
output << "M_.epilogue_names = {};" << endl
<< "M_.epilogue_var_list_ = {};" << endl;
return; return;
}
int idx = 1; int idx = 1;
output << "M_.epilogue_names = cell(" << dynamic_def_table.size() << ",1);" << endl; output << "M_.epilogue_names = cell(" << dynamic_def_table.size() << ",1);" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment