summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2005-12-12 13:20:41 +0000
committerPatrick Lam <plam@MIT.EDU>2005-12-12 13:20:41 +0000
commit368104c381815aa9a0c8c878f1d2be0cc5330f10 (patch)
treee45409e4663288353ffc3f2557418a3571ab5707 /src
parentea44e2184198aba956e39ae63a4914544c9719fe (diff)
Fix crash reported by Frederic Crozat when using libxml2.
reviewed by: plam
Diffstat (limited to 'src')
-rw-r--r--src/fcxml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fcxml.c b/src/fcxml.c
index e718ca2..ce92f64 100644
--- a/src/fcxml.c
+++ b/src/fcxml.c
@@ -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))