From: Paul Ramsey Date: Thu, 17 May 2012 11:54:43 +0000 (+0000) Subject: Error in empty short circuit (#1828) X-Git-Tag: 2.0.1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9b2aca592d244c21b0ef8e542a960d770c16b73;p=postgis Error in empty short circuit (#1828) git-svn-id: http://svn.osgeo.org/postgis/trunk@9744 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index 6f24ab005..be2ec9dc1 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -1548,7 +1548,7 @@ static double ptarray_distance_spheroid(const POINTARRAY *pa1, const POINTARRAY distance = MAXFLOAT; /* Empty point arrays? Return negative */ - if ( pa1->npoints == 0 || pa1->npoints == 0 ) + if ( pa1->npoints == 0 || pa2->npoints == 0 ) return -1.0; /* Handle point/point case here */