Skip to content

Commit

Permalink
lib: Fix uninitialized variable issue in shapiroe.c (#3994)
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm179-2.vcl.ncsu.edu>
  • Loading branch information
ShubhamDesai and Shubham Vasudeo Desai committed Jul 8, 2024
1 parent 559e088 commit 1c3c303
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cdhc/shapiroe.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ double *Cdhc_shapiro_wilk_exp(double *x, int n)
static double y[2];
double mean, b, s1, xs, sum1 = 0.0, sum2 = 0.0;
int i;
xs = x[0];

for (i = 0; i < n; ++i)
if (i == 0 || xs > x[i])
Expand Down

0 comments on commit 1c3c303

Please sign in to comment.