Skip to content

Commit

Permalink
Merge pull request #705 from danieldouglas92/initialize_uninitialized…
Browse files Browse the repository at this point in the history
…_variable

initialize unitialized variable
  • Loading branch information
MFraters authored May 8, 2024
2 parents f08dd07 + 8e9a99a commit 80503e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/world_builder/objects/bezier_curve.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,10 @@ namespace WorldBuilder

Point<2> estimate_point = a*est*est*est+b*est*est+c*est+d;

double cos_lat_dg;
double sin_d_long_h_dg;
double sin_d_lat_h_dg;
double min_squared_distance_cartesian_temp_dg;
double cos_lat_dg = NaN::DSNAN;
double sin_d_long_h_dg = NaN::DSNAN;
double sin_d_lat_h_dg = NaN::DSNAN;
double min_squared_distance_cartesian_temp_dg = NaN::DSNAN;
if (verbose == true)
{
cos_lat_dg = cos(estimate_point[1]);
Expand Down

0 comments on commit 80503e2

Please sign in to comment.