]> git.wh0rd.org Git - fontconfig.git/commitdiff
Fix crash reported by Frederic Crozat when using libxml2.
authorPatrick Lam <plam@MIT.EDU>
Mon, 12 Dec 2005 13:20:41 +0000 (13:20 +0000)
committerPatrick Lam <plam@MIT.EDU>
Mon, 12 Dec 2005 13:20:41 +0000 (13:20 +0000)
reviewed by: plam

ChangeLog
src/fcxml.c

index de7cf22ba5210400fa59511390a58fac85f73f75..423528b87dccff4c4114b91733d58a8201da8ad4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index e718ca2ea5f6cdc450556b8cf5fffe6703a6d94a..ce92f649cc2d7107f47d9178e17c059b02841020 100644 (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))