IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 21, 2006, 12:44:16 PM (20 years ago)
Author:
magnier
Message:

various fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileFitsIO.c

    r7589 r7618  
    101101        if (hdu != phu) {
    102102            // we assume that the PHU is just a header
    103             psMetadata *outhead = psMetadataCopy (NULL, phu->header);
     103            // header may not be defined for constructed images; make a dummy one
     104            psMetadata *outhead = NULL;
     105            if (phu->header) {
     106                outhead = psMetadataCopy (NULL, phu->header);
     107            } else {
     108                outhead = psMetadataAlloc ();
     109            }
    104110            psMetadataAdd (outhead, PS_LIST_TAIL, "EXTEND", PS_DATA_BOOL | PS_META_REPLACE, "this file has extensions", true);
    105111            psFitsWriteBlank (file->fits, outhead);
Note: See TracChangeset for help on using the changeset viewer.