1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

Fix non __GNUC__ build

For https://bugzilla.gnome.org/show_bug.cgi?id=681590
Length member of _xmlDictEntry is called "len" and not "l"
This commit is contained in:
Patrick Gansterer 2012-08-13 17:54:20 +08:00 committed by Daniel Veillard
parent 3b66622462
commit fd4f6fddf5

2
dict.c
View File

@ -843,7 +843,7 @@ xmlDictLookup(xmlDictPtr dict, const xmlChar *name, int len) {
return(insert->name);
}
#else
if ((insert->okey == okey) && (insert->l == l) &&
if ((insert->okey == okey) && (insert->len == l) &&
(!xmlStrncmp(insert->name, name, l)))
return(insert->name);
#endif