diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-04-23 00:45:03 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-04-23 00:45:03 -0400 |
commit | 2da0ecb96b0f31197f91ab65b9abb7744ae1bef9 (patch) | |
tree | 521246306134899e29aada00a61251bf5fdafd7d /decoder/ff_klm.cc | |
parent | fa79150ea0b5381ac1772d74aacb9fe53708b990 (diff) |
make sure state is initialized properly
Diffstat (limited to 'decoder/ff_klm.cc')
-rw-r--r-- | decoder/ff_klm.cc | 1 |
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")); |