Index: trunk/psastro/src/psastroLoadGhosts.c
===================================================================
--- trunk/psastro/src/psastroLoadGhosts.c	(revision 40551)
+++ trunk/psastro/src/psastroLoadGhosts.c	(revision 40552)
@@ -278,7 +278,7 @@
   float zeropt, exptime, MAX_MAG;
   psMetadata *ghostModel = NULL;
-  psVector *C_terms;
-  psVector *R_terms;
-  float glintPixelScale;
+  psVector *C_terms = NULL;
+  psVector *R_terms = NULL;
+  float glintPixelScale = 0.0;
   
   psLogMsg ("psastro", PS_LOG_INFO, "determine ghost positions");
@@ -341,4 +341,10 @@
     R_terms = psMetadataLookupPtr(&status, refItem->data.md, "R_TERMS");
     glintPixelScale = psMetadataLookupF32(&status, refItem->data.md, "SCALE");
+  }
+
+  // really error-out here?  or just skip?
+  if (!R_terms) {
+    psLogMsg ("psastro", PS_LOG_INFO, "failed to find HSC ghost model for filter %s", filter);
+    goto escape;
   }
   
Index: trunk/psastro/src/psastroLoadGlints.c
===================================================================
--- trunk/psastro/src/psastroLoadGlints.c	(revision 40551)
+++ trunk/psastro/src/psastroLoadGlints.c	(revision 40552)
@@ -313,6 +313,6 @@
 		      //		      star->FP->x,star->FP->y,star->Mag);
 		      star->TP->x,star->TP->y,star->Mag);
-	      psVector *C_terms;
-	      psVector *R_terms;
+	      psVector *C_terms = NULL;
+	      psVector *R_terms = NULL;
 	      double scale_factor = 1.0;
 	      
