From: Paul Ramsey Date: Wed, 14 Nov 2012 21:31:10 +0000 (+0000) Subject: #2042, measures.c: 'pt_in_arc_A' may be used uninitialized X-Git-Tag: 2.1.0beta2~397 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9cdb02b8fcd02babfff47ce29e3c3fed0be2a64;p=postgis #2042, measures.c: 'pt_in_arc_A' may be used uninitialized git-svn-id: http://svn.osgeo.org/postgis/trunk@10673 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/measures.c b/liblwgeom/measures.c index a44de8e61..30e53e42c 100644 --- a/liblwgeom/measures.c +++ b/liblwgeom/measures.c @@ -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. */