Skip to content

Commit

Permalink
Fix bug with parameter input
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Dec 6, 2024
1 parent b559452 commit 7b3276a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parameter_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ InputBlock *ParameterInput::FindOrAddBlock(const std::string &name) {
pib->pline = nullptr; // Terminate the InputLine list
pib->pnext = nullptr; // Terminate the InputBlock list

// Default max lengths to zero (in case of no parameters in this block)
pib->max_len_parname = 0;
pib->max_len_parvalue = 0;

// if this is the first block in list, save pointer to it in class
if (pfirst_block == nullptr) {
pfirst_block = pib;
Expand Down

0 comments on commit 7b3276a

Please sign in to comment.