Index: trunk/psModules/src/objects/pmSourceIO_CMP.c
===================================================================
--- trunk/psModules/src/objects/pmSourceIO_CMP.c	(revision 7311)
+++ trunk/psModules/src/objects/pmSourceIO_CMP.c	(revision 7430)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-03 01:02:08 $
+ *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-06-08 20:38:31 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -62,5 +62,7 @@
 
     // MEF elements have XTENSION, not SIMPLE: remove this (replace with SIMPLE)
-    psMetadataRemoveKey (header, "XTENSION");
+    psMetadataLookupStr (&status, header, "XTENSION");
+    if (status)
+        psMetadataRemoveKey (header, "XTENSION");
 
     // create file, write-out header
