lalapps/lalapps-fix-uninitialised-var.patch
Atri Bhattacharya 0788846317 Accepting request 943654 from home:badshah400:branches:science
- Update to version 7.4.0
- Drop lalapps-gcc11-array-bounds-decl.patch: upstreamed.
- Do not pass "-Wno-enum-conversion" to CFLAGS as XLALERROR  issues have been fixed (probably with version 7.1.0).

OBS-URL: https://build.opensuse.org/request/show/943654
OBS-URL: https://build.opensuse.org/package/show/science/lalapps?expand=0&rev=14
2022-01-10 23:52:04 +00:00

49 lines
2.3 KiB
Diff

Index: lalapps-7.4.0/src/string/StringSearch.c
===================================================================
--- lalapps-7.4.0.orig/src/string/StringSearch.c
+++ lalapps-7.4.0/src/string/StringSearch.c
@@ -201,7 +201,7 @@ int main(int argc,char *argv[])
unsigned seg_length;
StringTemplate strtemplate[MAXTEMPLATES];
int NTemplates;
- int NTemplates_fix; /* number of template given by the template bank file */
+ int NTemplates_fix = 0; /* number of template given by the template bank file */
REAL8 fcutoff_fix[MAXTEMPLATES]; /* high frequency cutoffs given by the template bank file */
SnglBurst *events=NULL;
MetadataTable process;
Index: lalapps-7.4.0/src/pulsar/HoughFstat/HierarchicalSearch.c
===================================================================
--- lalapps-7.4.0.orig/src/pulsar/HoughFstat/HierarchicalSearch.c
+++ lalapps-7.4.0/src/pulsar/HoughFstat/HierarchicalSearch.c
@@ -1255,7 +1255,7 @@ void SetUpSFTs( LALStatus *status, /**
REAL8 timebase, tObs, deltaFsft;
UINT4 k,numSFTby2;
LIGOTimeGPS tStartGPS, tEndGPS, refTimeGPS, tMidGPS;
- SFTCatalogSequence catalogSeq;
+ SFTCatalogSequence catalogSeq = {};
REAL8 doppWings, fMin, fMax;
REAL8 startTime_freqLo, startTime_freqHi;
@@ -1516,7 +1516,7 @@ void ComputeFstatHoughMap(LALStatus *sta
LIGOTimeGPSVector *tsMid;
REAL8Vector *timeDiffV=NULL;
UINT8Vector hist; /* histogram vector */
- UINT8Vector histTotal; /* total histogram vector */
+ UINT8Vector histTotal = {}; /* total histogram vector */
HoughStats stats; /* statistics struct */
CHAR *fileStats = NULL;
FILE *fpStats = NULL;
Index: lalapps-7.4.0/src/pulsar/SFTTools/splitSFTs.c
===================================================================
--- lalapps-7.4.0.orig/src/pulsar/SFTTools/splitSFTs.c
+++ lalapps-7.4.0/src/pulsar/SFTTools/splitSFTs.c
@@ -204,7 +204,7 @@ int main( int argc, char **argv )
{
int arg; /* current command-line argument */
unsigned int bin; /* current bin */
- struct headertag2 hd, lasthd; /* header of input SFT */
+ struct headertag2 hd, lasthd = {}; /* header of input SFT */
FILE *fpin; /* currently open input filepointer */
FILE *fpout; /* currently open output filepointer */
char *oldcomment; /* comment of input SFT */