summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}