Skip to content

Commit 793191b

Browse files
authored
[src] Fix bug for GetBestPath() in lattice-incremental-online-decoder.cc (#3927)
1 parent 04a0c73 commit 793191b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decoder/lattice-incremental-online-decoder.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ typename LatticeIncrementalOnlineDecoderTpl<FST>::BestPathIterator LatticeIncrem
9898
// it a fatal error for now.
9999
KALDI_WARN << "No final token found.";
100100
}
101-
if (final_cost_out == NULL)
101+
if (final_cost_out != NULL)
102102
*final_cost_out = best_final_cost;
103103
return BestPathIterator(best_tok, this->NumFramesDecoded() - 1);
104104
}

0 commit comments

Comments
 (0)