Index: /trunk/psLib/test/mathtypes/tst_psImage.c
===================================================================
--- /trunk/psLib/test/mathtypes/tst_psImage.c	(revision 4935)
+++ /trunk/psLib/test/mathtypes/tst_psImage.c	(revision 4936)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-08-26 23:01:17 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-08-31 22:00:32 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -285,14 +285,15 @@
 static psS32 testRegion2(void)
 {
-    psImage *in = NULL;
-    psRegion *inReg;
+    psImage *in;
+    psRegion inReg[1];
     psRegion out;
     in = psImageAlloc(1, 1, PS_TYPE_S32);
-    *inReg = psRegionSet(1, 2, 1, 2);
-    out = psRegionForImage(in, inReg);
-    psRegion *inReg2;
+    inReg[0] = psRegionSet(1, 2, 1, 2);
+    out = psRegionForImage(in,inReg);
+    psRegion inReg2[1];
     psRegion out2;
-    *inReg2 = psRegionSet(-1, 0, -2, -1);
+    inReg2[0] = psRegionSet(-1, 0, -2, -1);
     out2 = psRegionForImage(in, inReg2);
+
     if( out.x0 != 1 || out.x1 != 1 || out.y0 != 1 || out.y1 != 1 ) {
         psError(PS_ERR_UNKNOWN, true, "Error:  Region For Image returned incorrect values.\n");
@@ -301,4 +302,5 @@
         psError(PS_ERR_UNKNOWN, true, "Error:  Region For Image returned incorrect values.\n");
     }
+
     psFree(in);
     return 0;
