Skip to content

Commit 586904e

Browse files
committed
fix uninitialised variable
1 parent d0ce1ae commit 586904e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ double min_value = numeric_limits<double>::min(); // current minimal weight repr
16061606
file_nexus.open(nexus);
16071607
// nexus format stuff
16081608
stream_nexus << "#nexus\n\nBEGIN Taxa;\nDIMENSIONS ntax=" << denom_file_count << ";\nTAXLABELS" ;
1609-
for(int i; i < denom_file_count; ++i){
1609+
for(int i = 0; i < denom_file_count; ++i){
16101610
string taxa = nexus_color::remove_extensions(denom_names[i]); // cutting off file extension
16111611
stream_nexus << "\n[" << i+1 << "] '" << taxa << "'";
16121612
}

0 commit comments

Comments
 (0)