[postgis-tickets] r15394 - ST_AsMVT Forgot to initialize to NULL

bjorn at wololo.org bjorn at wololo.org
Wed May 17 11:18:17 PDT 2017


Author: bjornharrtell
Date: 2017-05-17 11:18:17 -0700 (Wed, 17 May 2017)
New Revision: 15394

Modified:
   trunk/postgis/mvt.c
Log:
ST_AsMVT Forgot to initialize to NULL

Modified: trunk/postgis/mvt.c
===================================================================
--- trunk/postgis/mvt.c	2017-05-17 17:52:38 UTC (rev 15393)
+++ trunk/postgis/mvt.c	2017-05-17 18:18:17 UTC (rev 15394)
@@ -633,7 +633,7 @@
 	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;



More information about the postgis-tickets mailing list