Fix crash reported by Frederic Crozat when using libxml2.
reviewed by: plam
This commit is contained in:
parent
ea44e21841
commit
368104c381
|
@ -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>
|
2005-12-09 Patrick Lam <plam@mit.edu>
|
||||||
* INSTALL:
|
* INSTALL:
|
||||||
* configure.in:
|
* configure.in:
|
||||||
|
|
|
@ -1024,6 +1024,9 @@ FcConfigGetAttribute (FcConfigParse *parse, const char *attr)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
attrs = parse->pstack->attr;
|
attrs = parse->pstack->attr;
|
||||||
|
if (!attrs)
|
||||||
|
return 0;
|
||||||
|
|
||||||
while (*attrs)
|
while (*attrs)
|
||||||
{
|
{
|
||||||
if (!strcmp ((char *) *attrs, attr))
|
if (!strcmp ((char *) *attrs, attr))
|
||||||
|
|
Loading…
Reference in New Issue