Skip to content

Commit

Permalink
Merge pull request #67 from kloetzl/fix-no-comment-raw
Browse files Browse the repository at this point in the history
fix null-pointer deref on sequences without comment
  • Loading branch information
ondovb committed Nov 8, 2017
2 parents ebfc1de + 24affab commit 86696c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mash/Sketch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,13 +1176,13 @@ Sketch::SketchOutput * sketchFile(Sketch::SketchInput * input)
if ( input->fileName == "-" )
{
reference.name = seq->name.s;
reference.comment = seq->comment.s;
reference.comment = seq->comment.s ? seq->comment.s : "";
}
else
{
reference.comment = seq->name.s;
reference.comment.append(" ");
reference.comment.append(seq->comment.s);
reference.comment.append(seq->comment.s ? seq->comment.s : "");
}
}

Expand Down

0 comments on commit 86696c7

Please sign in to comment.