]> granicus.if.org Git - postgis/commitdiff
Remove initialized jump valgrind notice
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 29 Jun 2015 16:56:08 +0000 (16:56 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 29 Jun 2015 16:56:08 +0000 (16:56 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13742 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_misc.c

index 46420b587981723d8f6a9ec1dd982889981c7605..3513b07aa8d289c3c732914a3ccec4ab0e7b06e1 100644 (file)
@@ -145,11 +145,13 @@ static void test_rect_count(void)
        static char *wkt = "MULTIPOLYGON(((0 0, 10 0, 10 10, 0 10, 0 0)))";
        LWGEOM *geom = lwgeom_from_wkt(wkt, LW_PARSER_CHECK_ALL);
 
+       box.flags = 0;
        box.xmin = -5;  box.ymin = -5;
        box.xmax =  5;  box.ymax =  5;
        n = lwgeom_npoints_in_rect(geom, &box);
        CU_ASSERT_EQUAL(2, n);
 
+       box.flags = 0;
        box.xmin = -5;  box.ymin = -5;
        box.xmax = 15;  box.ymax = 15; 
        n = lwgeom_npoints_in_rect(geom, &box);