Skip to content

Commit

Permalink
Fix dangling pointer in assign command
Browse files Browse the repository at this point in the history
  • Loading branch information
lczech committed Feb 21, 2024
1 parent 3955def commit 1577ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/examine/assign.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
gappa - Genesis Applications for Phylogenetic Placement Analysis
Copyright (C) 2017-2022 Pierre Barbera, Lucas Czech and HITS gGmbH
Copyright (C) 2017-2024 Pierre Barbera and Lucas Czech
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -997,7 +997,7 @@ void print_krona(
});
}

Taxon& get_subtaxonomy( Taxonomy tax, AssignOptions const& options )
Taxon const& get_subtaxonomy( Taxonomy const& tax, AssignOptions const& options )
{
// This function is only called if the option for sub tax is spefied.
assert( ! options.sub_taxopath.empty() );
Expand Down

0 comments on commit 1577ce3

Please sign in to comment.