summaryrefslogtreecommitdiff
path: root/xml.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-05-16 15:58:59 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-05-16 15:58:59 +0200
commitd4f666484cd690b15ea9725bed46c6bbc46c8fd8 (patch)
tree8cd966d07c6aec161455261460447e25477e7fcd /xml.c
parent43c435086fc16b4e86468dc8bafcd777ae0eace3 (diff)
xml: call parse
Diffstat (limited to 'xml.c')
-rw-r--r--xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xml.c b/xml.c
index d2a064d..660a279 100644
--- a/xml.c
+++ b/xml.c
@@ -362,6 +362,7 @@ xmlparser_parse_string(XMLParser *x, const char *s)
{
x->str = s;
x->getnext = xmlparser_string_getnext;
+ xmlparser_parse(x);
}
void
@@ -369,4 +370,5 @@ xmlparser_parse_fd(XMLParser *x, int fd)
{
x->fd = fd;
x->getnext = xmlparser_fd_getnext;
+ xmlparser_parse(x);
}