Skip to content

Commit 9b0e580

Browse files
authored
Merge pull request #1 from lrobidou/master
fix uninitialised variable
2 parents 1b91161 + 586904e commit 9b0e580

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
@@ -1609,7 +1609,7 @@ double min_value = numeric_limits<double>::min(); // current minimal weight repr
16091609
file_nexus.open(nexus);
16101610
// nexus format stuff
16111611
stream_nexus << "#nexus\n\nBEGIN Taxa;\nDIMENSIONS ntax=" << denom_file_count << ";\nTAXLABELS" ;
1612-
for(int i; i < denom_file_count; ++i){
1612+
for(int i = 0; i < denom_file_count; ++i){
16131613
string taxa = nexus_color::remove_extensions(denom_names[i]); // cutting off file extension
16141614
stream_nexus << "\n[" << i+1 << "] '" << taxa << "'";
16151615
}

0 commit comments

Comments
 (0)