Skip to content

Commit

Permalink
Fix CID 1393244 and CID 1393244 (Uninitialized scalar variable)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jun 20, 2018
1 parent d6391ee commit 2ceb200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classify/intfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static void ExtractFeaturesFromRun(
denorm.NormTransform(root_denorm, prev_normed_pos, &prev_normed_pos);
LLSQ points;
LLSQ dirs;
FCOORD normed_pos;
FCOORD normed_pos(0.0f, 0.0f);
int index = GatherPoints(outline, feature_length, denorm, root_denorm,
start_index, end_index, &pos, &normed_pos,
&points, &dirs);
Expand All @@ -366,7 +366,7 @@ static void ExtractFeaturesFromRun(
// accumulators.
LLSQ next_points;
LLSQ next_dirs;
FCOORD next_normed_pos;
FCOORD next_normed_pos(0.0f, 0.0f);
index = GatherPoints(outline, feature_length, denorm, root_denorm,
index, end_index, &pos, &next_normed_pos,
&next_points, &next_dirs);
Expand Down

0 comments on commit 2ceb200

Please sign in to comment.