Skip to content

Commit

Permalink
Merge pull request #495 from stweil/warn
Browse files Browse the repository at this point in the history
Fix compiler warning (-Wmaybe-uninitialized)
  • Loading branch information
zdenop authored Nov 23, 2016
2 parents 51368c8 + c882373 commit 5bb97f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccstruct/blamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void BlamerBundle::SetChopperBlame(const WERD_RES* word, bool debug) {
int num_blobs = word->chopped_word->blobs.size();
int box_index = 0;
int blob_index = 0;
inT16 truth_x;
inT16 truth_x = -1;
while (box_index < truth_word_.length() && blob_index < num_blobs) {
truth_x = norm_truth_word_.BlobBox(box_index).right();
TBLOB * curr_blob = word->chopped_word->blobs[blob_index];
Expand Down

0 comments on commit 5bb97f9

Please sign in to comment.