Index: /trunk/pswarp/src/pswarpDefine.c
===================================================================
--- /trunk/pswarp/src/pswarpDefine.c	(revision 18170)
+++ /trunk/pswarp/src/pswarpDefine.c	(revision 18171)
@@ -34,5 +34,5 @@
     // Read header and create target
     {
-        if (!pmFPAReadHeaderSet(skycell->fpa, skycell->fits, config->database)) {
+        if (!pmFPAReadHeaderSet(skycell->fpa, skycell->fits, config)) {
             psError(PS_ERR_UNKNOWN, false, "Unable to read headers for skycell.");
             psFree(view);
