Skip to content

Commit 2ceb200

Browse files
committed
Fix CID 1393244 and CID 1393244 (Uninitialized scalar variable)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent d6391ee commit 2ceb200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classify/intfx.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static void ExtractFeaturesFromRun(
354354
denorm.NormTransform(root_denorm, prev_normed_pos, &prev_normed_pos);
355355
LLSQ points;
356356
LLSQ dirs;
357-
FCOORD normed_pos;
357+
FCOORD normed_pos(0.0f, 0.0f);
358358
int index = GatherPoints(outline, feature_length, denorm, root_denorm,
359359
start_index, end_index, &pos, &normed_pos,
360360
&points, &dirs);
@@ -366,7 +366,7 @@ static void ExtractFeaturesFromRun(
366366
// accumulators.
367367
LLSQ next_points;
368368
LLSQ next_dirs;
369-
FCOORD next_normed_pos;
369+
FCOORD next_normed_pos(0.0f, 0.0f);
370370
index = GatherPoints(outline, feature_length, denorm, root_denorm,
371371
index, end_index, &pos, &next_normed_pos,
372372
&next_points, &next_dirs);

0 commit comments

Comments
 (0)