mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-28 05:19:18 +08:00
Fix NULL pointer access (issue #3394)
The regression was caused by commit 57c90eee02
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
2ee21b6dfb
commit
4daf781916
@ -421,7 +421,11 @@ static void empty_buckets(BLOCK *block, // block to scan
|
||||
C_OUTLINE_LIST outlines; // outlines in block
|
||||
// iterator
|
||||
C_OUTLINE_IT out_it = &outlines;
|
||||
C_OUTLINE_IT bucket_it = buckets->start_scan();
|
||||
auto start_scan = buckets->start_scan();
|
||||
if (start_scan == nullptr) {
|
||||
return;
|
||||
}
|
||||
C_OUTLINE_IT bucket_it = start_scan;
|
||||
C_BLOB_IT good_blobs = block->blob_list();
|
||||
C_BLOB_IT junk_blobs = block->reject_blobs();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user