lalapps/lalapps-fix-uninitialised-var.patch
Atri Bhattacharya 237e304e27 Accepting request 819093 from home:badshah400:branches:science
- Update to version 6.26.0.
- Minor refresh of lalapps-fix-uninitialised-var.patch with upstream file naming and other changes.
- Disable 32-bit builds: no longer supported upstream.
- Fix an env based hashbang.

OBS-URL: https://build.opensuse.org/request/show/819093
OBS-URL: https://build.opensuse.org/package/show/science/lalapps?expand=0&rev=3
2020-07-10 17:38:15 +00:00

62 lines
2.9 KiB
Diff

Index: lalapps-6.26.0/src/string/StringSearch.c
===================================================================
--- lalapps-6.26.0.orig/src/string/StringSearch.c
+++ lalapps-6.26.0/src/string/StringSearch.c
@@ -202,7 +202,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-6.26.0/src/pulsar/SFTTools/SFTvalidate.c
===================================================================
--- lalapps-6.26.0.orig/src/pulsar/SFTTools/SFTvalidate.c
+++ lalapps-6.26.0/src/pulsar/SFTTools/SFTvalidate.c
@@ -59,7 +59,7 @@ int main(int argc, char** argv) {
/* and read successive SFTs blocks from the file and validate CRC
checksums */
for (count=0; 1; count++) {
- struct headertag2 info,lastinfo;
+ struct headertag2 info,lastinfo={};
int err=0, swapendian, move, j;
err=ReadSFTHeader(fp, &info, NULL, &swapendian, 1);
Index: lalapps-6.26.0/src/pulsar/HoughFstat/HierarchicalSearch.c
===================================================================
--- lalapps-6.26.0.orig/src/pulsar/HoughFstat/HierarchicalSearch.c
+++ lalapps-6.26.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-6.26.0/src/pulsar/SFTTools/splitSFTs.c
===================================================================
--- lalapps-6.26.0.orig/src/pulsar/SFTTools/splitSFTs.c
+++ lalapps-6.26.0/src/pulsar/SFTTools/splitSFTs.c
@@ -199,7 +199,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 */