IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 25, 2008, 10:39:40 AM (18 years ago)
Author:
Paul Price
Message:

Allocate header if not already done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r16906 r17137  
    8787        psString comment = NULL;        // Comment to add to header
    8888        psStringAppend(&comment, "Combining using statistic: %x", params->combine);
     89        if (!hdu->header) {
     90            hdu->header = psMetadataAlloc();
     91        }
    8992        psMetadataAddStr(hdu->header, PS_LIST_TAIL, "HISTORY", PS_META_DUPLICATE_OK, comment, "");
    9093        psFree(comment);
Note: See TracChangeset for help on using the changeset viewer.