commit | 18a57d9b489fa7403431ad750abfc477ddbddd0e | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 25 14:01:42 2019 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 25 14:01:42 2019 +0200 |
tree | bf1d0113a2bbb6ca60b3929598db9246c5b1ed01 | |
parent | 22ebdbaffc57982a09b0eca2ac0e1d7504106c6b [diff] |
XML data parser BUGFIX uninitialized return code variable
diff --git a/src/parser_xml.c b/src/parser_xml.c index d35fd29..005f131 100644 --- a/src/parser_xml.c +++ b/src/parser_xml.c
@@ -420,7 +420,7 @@ LY_ERR lyd_parse_xml(struct ly_ctx *ctx, const char *data, int options, const struct lyd_node **trees, struct lyd_node **result) { - LY_ERR ret; + LY_ERR ret = LY_SUCCESS; struct lyd_node_inner *parent = NULL; struct lyd_xml_ctx xmlctx = {0};