Index: /trunk/psLib/src/fits/psFitsHeader.c
===================================================================
--- /trunk/psLib/src/fits/psFitsHeader.c	(revision 7822)
+++ /trunk/psLib/src/fits/psFitsHeader.c	(revision 7823)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-28 01:56:58 $
+ *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-07-06 01:13:11 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -421,8 +421,5 @@
     }
 
-    if (!output) {
-        psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psFits_METADATA_NULL);
-        return false;
-    }
+    // We allow output == NULL in order to write a minimal header.
 
     // Create a dummy image HDU for the primary HDU
@@ -436,5 +433,9 @@
     }
 
-    return fitsWriteHeader(fits, output, false);
+    if (output) {
+        return fitsWriteHeader(fits, output, false);
+    }
+
+    return true;
 }
 
