Commit 368104c3 authored by Patrick Lam's avatar Patrick Lam

Fix crash reported by Frederic Crozat when using libxml2.

reviewed by: plam
parent ea44e218
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) ...@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment