IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24863


Ignore:
Timestamp:
Jul 20, 2009, 3:43:25 PM (17 years ago)
Author:
Paul Price
Message:

Propagate error instead of SEGV.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsImage.c

    r22729 r24863  
    439439
    440440    p_psFitsReadInfo *info = p_psFitsReadInfoAlloc(fits, region, z);
     441    if (!info) {
     442        psError(PS_ERR_IO, false, "Unable to read FITS information");
     443        return NULL;
     444    }
    441445
    442446    // Size of image
Note: See TracChangeset for help on using the changeset viewer.