Skip to content

Commit

Permalink
avoid reusing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gf777 committed Jan 28, 2025
1 parent 06b6bdc commit 4948374
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ void Input::read(InSequences& inSequences) {
seqHeader = newLine.substr(0, spacePos);
if (spacePos != std::string::npos)
seqComment = newLine.substr(spacePos + 1);
else
seqComment.clear();

std::string* inSequence = new std::string;
getline(*stream, *inSequence, '>');
Expand Down Expand Up @@ -144,6 +146,8 @@ void Input::read(InSequences& inSequences) {
seqHeader = newLine.substr(0, spacePos);
if (spacePos != std::string::npos)
seqComment = newLine.substr(spacePos + 1);
else
seqComment.clear();

std::string* inSequence = new std::string;
getline(*stream, *inSequence);
Expand Down

0 comments on commit 4948374

Please sign in to comment.