From 9061205d65acd047811ae6779b4f7fdeb28eacd8 Mon Sep 17 00:00:00 2001 From: Maxime Schoemans Date: Thu, 2 Jan 2025 21:10:08 +0100 Subject: [PATCH] Correctly extract atomic geoms (#24) --- contrib/postgis/postgis_mest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/postgis/postgis_mest.c b/contrib/postgis/postgis_mest.c index c6cb249..e41811d 100755 --- a/contrib/postgis/postgis_mest.c +++ b/contrib/postgis/postgis_mest.c @@ -40,7 +40,7 @@ geometry_mest_extract(PG_FUNCTION_ARGS) if (! lwtype_is_collection(gstype)) { *nkeys = 1; - PG_RETURN_POINTER(gs); + PG_RETURN_POINTER(&gs); } LWGEOM *lwgeom = lwgeom_from_gserialized(gs);