Skip to content

Commit

Permalink
Fix CID 1340287 (Unchecked return value)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 1, 2018
1 parent a49b8f1 commit e8e94d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2445,7 +2445,7 @@ void TessBaseAPI::GetBlockTextOrientations(int** block_orientation,

/** Find lines from the image making the BLOCK_LIST. */
BLOCK_LIST* TessBaseAPI::FindLinesCreateBlockList() {
FindLines();
ASSERT_HOST(FindLines() == 0);
BLOCK_LIST* result = block_list_;
block_list_ = nullptr;
return result;
Expand Down

0 comments on commit e8e94d3

Please sign in to comment.