From: Olivier Courtin Date: Tue, 24 Nov 2009 17:28:02 +0000 (+0000) Subject: explicit NULL test on xa->name. Related to #273 X-Git-Tag: 1.5.0b1~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a1a0d43af4bb0283f27d803933f1ad1388fcd36;p=postgis explicit NULL test on xa->name. Related to #273 git-svn-id: http://svn.osgeo.org/postgis/trunk@4890 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_in_gml.c b/postgis/lwgeom_in_gml.c index a3760627d..6573dfec5 100644 --- a/postgis/lwgeom_in_gml.c +++ b/postgis/lwgeom_in_gml.c @@ -855,7 +855,7 @@ static POINTARRAY* parse_gml_data(xmlNodePtr xnode, bool *hasz, int *root_srid) if (xa->type != XML_ELEMENT_NODE) continue; if (!is_gml_namespace(xa, false)) continue; - if (!xa->name) continue; + if (xa->name == NULL) continue; if (!strcmp((char *) xa->name, "pos")) { tmp_pa = parse_gml_pos(xa, hasz);