]> granicus.if.org Git - postgis/commitdiff
ST_AsMVT Forgot to initialize to NULL
authorBjörn Harrtell <bjorn@wololo.org>
Wed, 17 May 2017 18:18:17 +0000 (18:18 +0000)
committerBjörn Harrtell <bjorn@wololo.org>
Wed, 17 May 2017 18:18:17 +0000 (18:18 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15394 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/mvt.c

index 2aad7bedd5e3ccdb596822de68fa7c17e5b63ded..2711837d497edefb96c7c195de25b492f91fa581 100644 (file)
@@ -633,7 +633,7 @@ LWGEOM *mvt_geom(LWGEOM *lwgeom, GBOX *gbox, uint32_t extent, uint32_t buffer,
        bool clip_geom)
 {
        POSTGIS_DEBUG(2, "mvt_geom called");
-       LWGEOM *lwgeom_out;
+       LWGEOM *lwgeom_out = NULL;
        double width = gbox->xmax - gbox->xmin;
        double height = gbox->ymax - gbox->ymin;
        double resx = width / extent;