Skip to content

Commit 1bd561d

Browse files
committed
Fewer g++ -Wmaybe-uninitialized warnings
1 parent da3c462 commit 1bd561d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

textord/textord.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ void Textord::TextordPage(PageSegMode pageseg_mode, const FCOORD& reskew,
285285
// RAW_LINE, SINGLE_LINE, SINGLE_WORD and SINGLE_CHAR all need a single row.
286286
gradient = make_single_row(page_tr_, pageseg_mode != PSM_RAW_LINE,
287287
to_block, to_blocks);
288+
} else {
289+
gradient = 0.0f;
288290
}
289291
BaselineDetect baseline_detector(textord_baseline_debug,
290292
reskew, to_blocks);

0 commit comments

Comments
 (0)