mirror of
https://gitea.psi.ch/ELOG/mxml.git
synced 2026-09-09 01:23:22 +00:00
Clear error
This commit is contained in:
parent
aa2cf446c9
commit
88f8fac150
6
mxml.c
6
mxml.c
@ -37,6 +37,9 @@
|
||||
deleting nodes.
|
||||
|
||||
$Log$
|
||||
Revision 1.10 2005/05/09 18:43:52 ritt
|
||||
Clear error
|
||||
|
||||
Revision 1.9 2005/05/09 09:12:25 ritt
|
||||
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;
|
||||
PMXML_NODE root;
|
||||
|
||||
if (error)
|
||||
error[0] = 0;
|
||||
|
||||
fh = open(file_name, O_RDONLY | O_TEXT, 0644);
|
||||
|
||||
if (fh == -1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user