Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 1106: [PATCH] Fixed potential usage of uninitialized bool varia… #9

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions textord/tospace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,9 @@ ROW *Textord::make_prop_words(
box_it.set_to_list (row->blob_list ());
word_it.set_to_list (&words);
bol = TRUE;
fuzzy_non = FALSE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These initializations look redundant to me. They are already initialized at declaration time near line 894.

Having said that, I find the mix of declaration time and non-declaration initializations needlessly complex and think all of these later initializations should get rolled back up into the declarations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ray addressed that issue after Martin's bug report: commit 9708041 fixes all three cases, so this pull request can be closed.

fuzzy_sp = FALSE;
blanks = 0;
prev_blanks = 0;
prev_fuzzy_sp = FALSE;
prev_fuzzy_non = FALSE;
Expand Down