diff options
Diffstat (limited to 'format/fastxml/parser.ha')
-rw-r--r-- | format/fastxml/parser.ha | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/format/fastxml/parser.ha b/format/fastxml/parser.ha index 5dc1b52..e1573f2 100644 --- a/format/fastxml/parser.ha +++ b/format/fastxml/parser.ha @@ -39,7 +39,7 @@ export fn parse(in: io::file) (*parser | error) = { textbuf = memio::dynamic(), line = 1, ... - }); + })?; match (prolog(par)) { case void => void; case let err: error => @@ -308,7 +308,7 @@ fn scan_element(par: *parser) (token | error) = { poptag(par, name)?; return name: elementend; } else { - append(par.tags, strings::dup(name)); + append(par.tags, strings::dup(name)?)?; return name: elementstart; }; }; |