mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 15:39:04 +08:00
Fix CID 1164566 (Dereference after null check)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
036c72ca2f
commit
bfe2a79502
@ -575,9 +575,9 @@ bool LanguageModel::AddViterbiStateEntry(
|
||||
else
|
||||
tprintf("\n");
|
||||
}
|
||||
ASSERT_HOST(curr_state != nullptr);
|
||||
// Check whether the list is full.
|
||||
if (curr_state != nullptr &&
|
||||
curr_state->viterbi_state_entries_length >=
|
||||
if (curr_state->viterbi_state_entries_length >=
|
||||
language_model_viterbi_list_max_size) {
|
||||
if (language_model_debug_level > 1) {
|
||||
tprintf("AddViterbiStateEntry: viterbi list is full!\n");
|
||||
|
Loading…
Reference in New Issue
Block a user