IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2006, 10:38:31 AM (20 years ago)
Author:
magnier
Message:

test for XTENSION before trying to delete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_CMP.c

    r7311 r7430  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-06-03 01:02:08 $
     5 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-06-08 20:38:31 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6262
    6363    // MEF elements have XTENSION, not SIMPLE: remove this (replace with SIMPLE)
    64     psMetadataRemoveKey (header, "XTENSION");
     64    psMetadataLookupStr (&status, header, "XTENSION");
     65    if (status)
     66        psMetadataRemoveKey (header, "XTENSION");
    6567
    6668    // create file, write-out header
Note: See TracChangeset for help on using the changeset viewer.