]> granicus.if.org Git - postgis/commitdiff
Generate nan() explicitly with a zeroed out area, does this fix mix WKB generation...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 23 Aug 2018 14:42:21 +0000 (14:42 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 23 Aug 2018 14:42:21 +0000 (14:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16703 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwout_wkb.c

index 4cf4cd31973cc2dabec11854ef8344a0b226adb9..4742d6e0394aac8c122d72a5bfe4c450599c52e4 100644 (file)
@@ -330,7 +330,7 @@ static uint8_t* empty_to_wkb_buf(const LWGEOM *geom, uint8_t *buf, uint8_t varia
        if ( geom->type == POINTTYPE )
        {
                const LWPOINT *pt = (LWPOINT*)geom;
-               static double nn = NAN;
+               double nn = nan("0");
                int i;
                for ( i = 0; i < FLAGS_NDIMS(pt->point->flags); i++ )
                {