commit | bf2333ec9ceede9b12dfc38396bb34a17fe25843 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Dec 05 10:41:40 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Dec 05 10:41:40 2022 +0100 |
tree | 11191d2ea54e46b52a306f0df2710431580068a9 | |
parent | 786a8838dd644b2429f1c7c14951e1d1a8e0375e [diff] |
xml BUGFIX uninitialized var use
diff --git a/src/xml.c b/src/xml.c index a0994bd..97e6abb 100644 --- a/src/xml.c +++ b/src/xml.c
@@ -686,8 +686,7 @@ LY_CHECK_RET(ly_set_add(&xmlctx->elements, e, 1, NULL)); if (xmlctx->elements.count > LY_MAX_BLOCK_DEPTH) { LOGERR(xmlctx->ctx, LY_EINVAL, "The maximum number of open elements has been exceeded."); - ret = LY_EINVAL; - goto cleanup; + return LY_EINVAL; } /* skip WS */