Clear error

This commit is contained in:
Stefan Ritt 2005-05-09 18:43:52 +00:00
parent aa2cf446c9
commit 88f8fac150

6
mxml.c
View File

@ -37,6 +37,9 @@
deleting nodes. deleting nodes.
$Log$ $Log$
Revision 1.10 2005/05/09 18:43:52 ritt
Clear error
Revision 1.9 2005/05/09 09:12:25 ritt Revision 1.9 2005/05/09 09:12:25 ritt
Moved strlcpy/strlcat into separate file Moved strlcpy/strlcat into separate file
@ -1409,6 +1412,9 @@ PMXML_NODE mxml_parse_file(char *file_name, char *error, int error_size)
int fh, length; int fh, length;
PMXML_NODE root; PMXML_NODE root;
if (error)
error[0] = 0;
fh = open(file_name, O_RDONLY | O_TEXT, 0644); fh = open(file_name, O_RDONLY | O_TEXT, 0644);
if (fh == -1) { if (fh == -1) {