]> granicus.if.org Git - postgis/commitdiff
explicit NULL test on xa->name. Related to #273
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Tue, 24 Nov 2009 17:28:02 +0000 (17:28 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Tue, 24 Nov 2009 17:28:02 +0000 (17:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4890 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_in_gml.c

index a3760627d5db97f190e6f1e26bebd40a00ae458e..6573dfec543a8f1fdba2b6bed07f66847a920820 100644 (file)
@@ -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);