diff options
author | Drew DeVault <sir@cmpwn.com> | 2025-02-17 14:31:43 +0100 |
---|---|---|
committer | Alexey Yerin <yyp@disroot.org> | 2025-02-17 17:03:26 +0300 |
commit | a53329a66b255684a92374c417f5612988293e1b (patch) | |
tree | 54c7f00db09478b4818f4155b2d1e97a6d49f333 /format/fastxml/parser.ha | |
parent | e5d712e6185dd807728de5e8887042e2b8ea8fd0 (diff) |
all: updates for nomem upstream
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; }; }; |