From 2734a43ffe24548e5053a3d882709f436159bd0c Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Wed, 14 Feb 2024 11:53:44 -0800 Subject: [PATCH] Fix maybe-uninitialized warnings in hfile.c --- hdf/src/hfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hdf/src/hfile.c b/hdf/src/hfile.c index cfbc6b41df..19fb2b354b 100644 --- a/hdf/src/hfile.c +++ b/hdf/src/hfile.c @@ -2516,8 +2516,8 @@ static intn HIcheckfileversion(int32 file_id) { filerec_t *file_rec; - uint32 lmajorv, lminorv, lrelease; - uint32 fmajorv, fminorv, frelease; + uint32 lmajorv = 0, lminorv = 0, lrelease = 0; + uint32 fmajorv = 0, fminorv = 0, frelease = 0; char string[LIBVSTR_LEN + 1]; /* len 80+1 */ intn newver = 0; intn ret_value = SUCCEED;