Index: /trunk/psModules/src/camera/pmHDU.c
===================================================================
--- /trunk/psModules/src/camera/pmHDU.c	(revision 7240)
+++ /trunk/psModules/src/camera/pmHDU.c	(revision 7241)
@@ -186,16 +186,6 @@
 
     // Only a header
-    if (!hdu->images && !hdu->table) {
-        #if 0
-        // Tell CFITSIO there's nothing there
-        psMetadataItem *naxis = psMetadataLookup(hdu->header, "NAXIS");
-        if (naxis) {
-            naxis->data.S32 = 0;
-        }
-        #endif
-
-        if (!psFitsWriteHeader(fits, hdu->header)) {
-            psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname);
-        }
+    if (!hdu->images && !hdu->table && !psFitsWriteBlank(fits, hdu->header)) {
+        psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname);
     }
 
