lalapps/lalapps-fix-uninitialised-var.patch
Atri Bhattacharya 55ba5f2051 Accepting request 871543 from home:bnavigator:branches:science
- Update to version 7.1.0
  * no public changelog 
- Skip python36 build. Due to NEP 29, astropy, numpy, scipy and co.
  do not have a python36 flavored package in TW
- Refresh lalapps-fix-uninitialised-var.patch
- Enable test suite
- Fix the python subpackage setup

OBS-URL: https://build.opensuse.org/request/show/871543
OBS-URL: https://build.opensuse.org/package/show/science/lalapps?expand=0&rev=7
2021-02-13 11:35:26 +00:00

49 lines
2.3 KiB
Diff

Index: lalapps-7.1.0/src/string/StringSearch.c
===================================================================
--- lalapps-7.1.0.orig/src/string/StringSearch.c
+++ lalapps-7.1.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.1.0/src/pulsar/HoughFstat/HierarchicalSearch.c
===================================================================
--- lalapps-7.1.0.orig/src/pulsar/HoughFstat/HierarchicalSearch.c
+++ lalapps-7.1.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.1.0/src/pulsar/SFTTools/splitSFTs.c
===================================================================
--- lalapps-7.1.0.orig/src/pulsar/SFTTools/splitSFTs.c
+++ lalapps-7.1.0/src/pulsar/SFTTools/splitSFTs.c
@@ -196,7 +196,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 */