From e2fcd274b21cb5b1d422cf9998d56b5f28ed5d93 Mon Sep 17 00:00:00 2001
From: Philippe Verley <philippe.verley@ird.fr>
Date: Mon, 16 Jan 2023 15:56:52 +0100
Subject: [PATCH] =?UTF-8?q?Fixed=20warning:=20=E2=80=98dis=E2=80=99=20may?=
 =?UTF-8?q?=20be=20used=20uninitialized=20in=20several=20Zlibs.c=20functio?=
 =?UTF-8?q?ns?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/Zlibs.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Zlibs.c b/src/Zlibs.c
index a161905..90a909b 100755
--- a/src/Zlibs.c
+++ b/src/Zlibs.c
@@ -6420,7 +6420,7 @@ int rao_rect_ic(int *point_nb, double *x, double *y, double *xmi, double *xma, d
                     {
                     if (*h0==1)
                         dis=mat[p*(*nbtype-2)-(p-1)*p/2+i-1];
-                    if (*h0==2)
+                    else // (*h0==2)
                         {
                         dis=matp[p*(*nbtype-2)-(p-1)*p/2+i-1];
                         HDsim+=(float) l[i+1]/(float) (*point_nb)*(float) l[p+1]/(float) (*point_nb)*dis;
@@ -6817,7 +6817,7 @@ int rao_disq_ic(int *point_nb, double *x, double *y, double *x0, double *y0, dou
                     {
                     if (*h0==1)
                         dis=mat[p*(*nbtype-2)-(p-1)*p/2+i-1];
-                    if (*h0==2)
+                    else // (*h0==2)
                         {
                         dis=matp[p*(*nbtype-2)-(p-1)*p/2+i-1];
                         HDsim+=(float) l[i+1]/(float) (*point_nb)*(float) l[p+1]/(float) (*point_nb)*dis;
@@ -7348,7 +7348,7 @@ int rao_tr_rect_ic(int *point_nb, double *x, double *y, double *xmi, double *xma
                     {
                     if (*h0==1)
                         dis=mat[p*(*nbtype-2)-(p-1)*p/2+i-1];
-                    if (*h0==2)
+                    else // (*h0==2)
                         {
                         dis=matp[p*(*nbtype-2)-(p-1)*p/2+i-1];
                         HDsim+=(float) l[i+1]/(float) (*point_nb)*(float) l[p+1]/(float) (*point_nb)*dis;
@@ -7608,7 +7608,7 @@ int rao_tr_disq_ic(int *point_nb, double *x, double *y, double *x0, double *y0,
                     {
                     if (*h0==1)
                         dis=mat[p*(*nbtype-2)-(p-1)*p/2+i-1];
-                    if (*h0==2)
+                    else // (*h0==2)
                         {
                         dis=matp[p*(*nbtype-2)-(p-1)*p/2+i-1];
                         HDsim+=(float) l[i+1]/(float) (*point_nb)*(float) l[p+1]/(float) (*point_nb)*dis;
-- 
GitLab