]> granicus.if.org Git - postgis/commitdiff
#2042, measures.c: 'pt_in_arc_A' may be used uninitialized
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 14 Nov 2012 21:31:10 +0000 (21:31 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 14 Nov 2012 21:31:10 +0000 (21:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10673 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/measures.c

index a44de8e61d149239786a707cf6bc4e6a633ae805..30e53e42cd8e5605307be46c3d72cb993458bd0d 100644 (file)
@@ -1320,6 +1320,11 @@ lw_dist2d_arc_arc(const POINT2D *A1, const POINT2D *A2, const POINT2D *A3,
                        return LW_TRUE;
                }
        } 
+       else
+       {
+               lwerror("lw_dist2d_arc_arc: arcs neither touch, intersect nor are disjoint! INCONCEIVABLE!");
+               return LW_FALSE;
+       }
 
        /* Closest point is in the arc A, but not in the arc B, so */
        /* one of the B end points must be the closest. */