commit | b124784ace2ceaf0808ac3b2fb901c2d266cffac | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 16:22:38 2020 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 02 16:22:38 2020 +0200 |
tree | a00c68f1cfb29388074b44537d2638d3df2a688b | |
parent | f6d14cba3c8a20d89aaa21c74985259bd40125f7 [diff] [blame] |
libyang BUGFIX uninitialized variables reported by coverity
diff --git a/src/parser_xml.c b/src/parser_xml.c index 2aae751..1c58248 100644 --- a/src/parser_xml.c +++ b/src/parser_xml.c
@@ -1057,7 +1057,7 @@ { LY_ERR ret = LY_SUCCESS; struct lyd_xml_ctx lydctx = {0}; - struct lyd_node *rpcr_e = NULL, *iter, *req_op, *rep_op; + struct lyd_node *rpcr_e = NULL, *iter, *req_op, *rep_op = NULL; /* init */ LY_CHECK_GOTO(ret = lyxml_ctx_new(LYD_NODE_CTX(request), data, &lydctx.xmlctx), cleanup);