Index: /branches/eam_branches/ipp-20101205/psModules/src/objects/pmTrend2D.c
===================================================================
--- /branches/eam_branches/ipp-20101205/psModules/src/objects/pmTrend2D.c	(revision 30019)
+++ /branches/eam_branches/ipp-20101205/psModules/src/objects/pmTrend2D.c	(revision 30020)
@@ -188,5 +188,7 @@
     PS_ASSERT_VECTOR_NON_NULL(f, false);
 
-    bool status;
+    bool status = false;
+    bool goodFit = false;
+
     switch (trend->mode) {
       case PM_TREND_POLY_ORD:
@@ -201,5 +203,5 @@
         // XXX supply fraction from trend elements
         // XXX need to add the API which adjusts the scale
-        status = psImageMapClipFit(trend->map, trend->stats, mask, maskVal, x, y, f, df);
+        status = psImageMapClipFit(&goodFit, trend->map, trend->stats, mask, maskVal, x, y, f, df);
         break;
 
