/*
- * $XFree86: xc/lib/fontconfig/src/fcxml.c,v 1.4 2002/02/20 00:32:30 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/src/fcxml.c,v 1.5 2002/02/22 18:54:07 keithp Exp $
*
* Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
*
do {
buf = XML_GetBuffer (p, BUFSIZ);
if (!buf)
+ {
+ FcConfigError (&parse, "cannot get parse buffer");
goto bail3;
+ }
len = fread (buf, 1, BUFSIZ, f);
if (len < 0)
+ {
+ FcConfigError (&parse, "failed reading config file");
goto bail3;
+ }
if (!XML_ParseBuffer (p, len, len == 0))
+ {
+ FcConfigError (&parse, "%s",
+ XML_ErrorString (XML_GetErrorCode (p)));
goto bail3;
+ }
} while (len != 0);
error = parse.error;
bail3: