Fix CID 1393244 and CID 1393244 (Uninitialized scalar variable)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-06-20 19:28:04 +02:00
parent d6391ee811
commit 2ceb200186

View File

@ -354,7 +354,7 @@ static void ExtractFeaturesFromRun(
denorm.NormTransform(root_denorm, prev_normed_pos, &prev_normed_pos); denorm.NormTransform(root_denorm, prev_normed_pos, &prev_normed_pos);
LLSQ points; LLSQ points;
LLSQ dirs; LLSQ dirs;
FCOORD normed_pos; FCOORD normed_pos(0.0f, 0.0f);
int index = GatherPoints(outline, feature_length, denorm, root_denorm, int index = GatherPoints(outline, feature_length, denorm, root_denorm,
start_index, end_index, &pos, &normed_pos, start_index, end_index, &pos, &normed_pos,
&points, &dirs); &points, &dirs);
@ -366,7 +366,7 @@ static void ExtractFeaturesFromRun(
// accumulators. // accumulators.
LLSQ next_points; LLSQ next_points;
LLSQ next_dirs; LLSQ next_dirs;
FCOORD next_normed_pos; FCOORD next_normed_pos(0.0f, 0.0f);
index = GatherPoints(outline, feature_length, denorm, root_denorm, index = GatherPoints(outline, feature_length, denorm, root_denorm,
index, end_index, &pos, &next_normed_pos, index, end_index, &pos, &next_normed_pos,
&next_points, &next_dirs); &next_points, &next_dirs);