From 1c3c30352021235e5b9553b2dd67ef490ced35f5 Mon Sep 17 00:00:00 2001 From: ShubhamDesai <42180509+ShubhamDesai@users.noreply.github.com> Date: Mon, 8 Jul 2024 02:44:23 -0400 Subject: [PATCH] lib: Fix uninitialized variable issue in shapiroe.c (#3994) Co-authored-by: Shubham Vasudeo Desai --- lib/cdhc/shapiroe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cdhc/shapiroe.c b/lib/cdhc/shapiroe.c index 1a75b393597..05521183829 100644 --- a/lib/cdhc/shapiroe.c +++ b/lib/cdhc/shapiroe.c @@ -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])