IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13428


Ignore:
Timestamp:
May 18, 2007, 4:24:46 AM (19 years ago)
Author:
rhl
Message:

Check pmGrowthCurveGenerate's return code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotApResid.c

    r13419 r13428  
    4747    psf->growth = pmGrowthCurveAlloc (PSF_FIT_PAD, 100.0, REF_RADIUS);
    4848
    49     pmGrowthCurveGenerate (readout, psf, IGNORE_GROWTH);
     49    if (!pmGrowthCurveGenerate (readout, psf, IGNORE_GROWTH)) {
     50        psError(PSPHOT_ERR_APERTURE, false, "Fitting aperture corrections");
     51        psFree(psf->growth); psf->growth = NULL;
     52        return false;
     53    }
    5054
    5155    psVector *mask    = psVectorAllocEmpty (300, PS_TYPE_U8);
Note: See TracChangeset for help on using the changeset viewer.