Commit cbdfa27f authored by John Douglas Veitch's avatar John Douglas Veitch

LALInferenceReadData.c: Fix logic in frame globbing to detect errors

parent 73c9aad9
......@@ -210,7 +210,7 @@ static LALCache *GlobFramesPWD(char *ifo)
fprintf(stderr,"(%s,%s,%s)\n",frGlobCache->list[i].src,frGlobCache->list[i].dsc,frGlobCache->list[i].url);
frInCache = XLALCacheDuplicate(frGlobCache);
XLALCacheSieve(frInCache, 0, 0, ifoRegExPattern, NULL, NULL);
if ( ! frGlobCache->length )
if ( ! frInCache->length )
{
fprintf( stderr, "error: no frame file files found after sieving\n");
exit( 1 );
......@@ -222,7 +222,7 @@ static LALCache *GlobFramesPWD(char *ifo)
fprintf(stderr,"(%s,%s,%s)\n",frInCache->list[i].src,frInCache->list[i].dsc,frInCache->list[i].url);
}
return(frGlobCache);
return(frInCache);
}
static REAL8TimeSeries *readTseries(LALCache *cache, CHAR *channel, LIGOTimeGPS start, REAL8 length)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment