Fix crash reported by Frederic Crozat when using libxml2.

reviewed by: plam
This commit is contained in:
Patrick Lam 2005-12-12 13:20:41 +00:00
parent ea44e21841
commit 368104c381
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
reviewed by: plam
* src/fcxml.c (FcConfigGetAttribute):
Fix crash reported by Frederic Crozat when using libxml2.
2005-12-09 Patrick Lam <plam@mit.edu>
* INSTALL:
* configure.in:

View File

@ -1024,6 +1024,9 @@ FcConfigGetAttribute (FcConfigParse *parse, const char *attr)
return 0;
attrs = parse->pstack->attr;
if (!attrs)
return 0;
while (*attrs)
{
if (!strcmp ((char *) *attrs, attr))