From 2ceb2001861750c7a51a5a12c93b95e297629b4f Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 20 Jun 2018 19:28:04 +0200 Subject: [PATCH] Fix CID 1393244 and CID 1393244 (Uninitialized scalar variable) Signed-off-by: Stefan Weil --- src/classify/intfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classify/intfx.cpp b/src/classify/intfx.cpp index 75a07a788..ce3801bb1 100644 --- a/src/classify/intfx.cpp +++ b/src/classify/intfx.cpp @@ -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); @@ -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);