Index: trunk/psModules/src/camera/pmHDU.c
===================================================================
--- trunk/psModules/src/camera/pmHDU.c	(revision 8848)
+++ trunk/psModules/src/camera/pmHDU.c	(revision 9067)
@@ -184,5 +184,5 @@
 
     // Only a header
-    if (!hdu->images && !hdu->table && !psFitsWriteBlank(fits, hdu->header)) {
+    if (!hdu->images && !hdu->table && !psFitsWriteBlank(fits, hdu->header, extname)) {
         psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname);
     }
