mirror of
https://gitea.psi.ch/ELOG/mxml.git
synced 2026-09-09 01:23:22 +00:00
Fixed bug where XML data was written to file instead of buffer
This commit is contained in:
parent
d4de46a3d8
commit
d51de8ab4b
5
mxml.c
5
mxml.c
@ -352,9 +352,8 @@ int mxml_end_element(MXML_WRITER *writer)
|
||||
free(writer->stack[writer->level]);
|
||||
if (writer->level == 0)
|
||||
free(writer->stack);
|
||||
if (write(writer->fh, "/>\n", 3) != 3)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
strcpy(line, "/>\n");
|
||||
return mxml_write_line(writer, line) == (int)strlen(line);
|
||||
}
|
||||
|
||||
line[0] = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user