Index: trunk/psastro/src/psastroRefstarSubset.c
===================================================================
--- trunk/psastro/src/psastroRefstarSubset.c	(revision 9649)
+++ trunk/psastro/src/psastroRefstarSubset.c	(revision 9732)
@@ -32,5 +32,5 @@
     return NULL;
   }
-  
+
   // XXXX test
   // psFree (rawfunc);
@@ -38,5 +38,5 @@
   // return true;
 
-  // what is the offset between the two lines at the average magnitude? 
+  // what is the offset between the two lines at the average magnitude?
   double mRef = 0.5*(reffunc->mMin + reffunc->mMax);
   double logRho = mRef * reffunc->slope + reffunc->offset;
@@ -48,5 +48,5 @@
   psLogMsg ("psastro", 4, "clipping stars fainter than %f\n", mRefMax);
 
-  psArray *subset = psArrayAlloc (100);
+  psArray *subset = psArrayAllocEmpty (100);
   for (int i = 0; i < refstars->n; i++) {
     pmAstromObj *ref = refstars->data[i];
