Index: trunk/psphot/src/psphotTest.c
===================================================================
--- trunk/psphot/src/psphotTest.c	(revision 9270)
+++ trunk/psphot/src/psphotTest.c	(revision 9734)
@@ -15,5 +15,5 @@
 int main (int argc, char **argv) {
 
-    psRegion region = {0,0,0,0};	// a region representing the entire array
+    psRegion region = {0,0,0,0};        // a region representing the entire array
     psphotTestArguments (&argc, argv);
 
@@ -56,22 +56,21 @@
     mdi->data.S32 = 0;
     mdi->type = PS_DATA_S32;
-    
+
     // create a test image
     // psImage *tmpimage = psImageAlloc (10, 10, PS_DATA_F32);
 
     // create a test table
-    table = psArrayAlloc (10);
-table->n = 0;
+    table = psArrayAllocEmpty (10);
 
     for (int i = 0; i < 10; i++) {
-	row = psMetadataAlloc ();
-	psMetadataAdd (row, PS_LIST_TAIL, "ROW",   PS_DATA_S32,    "", i);
-	psMetadataAdd (row, PS_LIST_TAIL, "FROW",  PS_TYPE_F32,    "", 0.1*i);
-	psMetadataAdd (row, PS_LIST_TAIL, "DUMMY", PS_DATA_STRING, "", "test line");
-    
-	table->data[i] = row;
+        row = psMetadataAlloc ();
+        psMetadataAdd (row, PS_LIST_TAIL, "ROW",   PS_DATA_S32,    "", i);
+        psMetadataAdd (row, PS_LIST_TAIL, "FROW",  PS_TYPE_F32,    "", 0.1*i);
+        psMetadataAdd (row, PS_LIST_TAIL, "DUMMY", PS_DATA_STRING, "", "test line");
+
+        table->data[i] = row;
     }
     table->n = 10;
-    
+
     psMetadata *theader = psMetadataAlloc ();
     psMetadataAdd (theader, PS_LIST_HEAD, "EXTNAME", PS_DATA_STRING, "extension name", "SMPFILE");
