From: Paul Ramsey Date: Mon, 29 Jun 2015 16:56:08 +0000 (+0000) Subject: Remove initialized jump valgrind notice X-Git-Tag: 2.2.0rc1~296 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df4ad20b6d3def0efcc5bc2ea1a4c77686f8ea2e;p=postgis Remove initialized jump valgrind notice git-svn-id: http://svn.osgeo.org/postgis/trunk@13742 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_misc.c b/liblwgeom/cunit/cu_misc.c index 46420b587..3513b07aa 100644 --- a/liblwgeom/cunit/cu_misc.c +++ b/liblwgeom/cunit/cu_misc.c @@ -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);