summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decoder/ff_klm.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ff_klm.cc b/decoder/ff_klm.cc
index 62908cdc..cc7cd427 100644
--- a/decoder/ff_klm.cc
+++ b/decoder/ff_klm.cc
@@ -297,6 +297,7 @@ class KLanguageModelImpl {
// special handling of beginning / ending sentence markers
dummy_state_ = new char[state_size_];
+ memset(dummy_state_, 0, state_size_);
dummy_ants_.push_back(dummy_state_);
dummy_ants_.push_back(NULL);
dummy_rule_.reset(new TRule("[DUMMY] ||| [BOS] [DUMMY] ||| [1] [2] </s> ||| X=0"));