[apr-util] Fix issues reported by scan-build.

This commit is contained in:
Andrey Volk
2020-02-14 18:39:15 +04:00
parent 5378eae101
commit a7cdf35b60
3 changed files with 6 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ static int find_prefix(apr_xml_parser *parser, const char *prefix)
** prefix.
*/
for (; elem; elem = elem->parent) {
apr_xml_ns_scope *ns_scope = elem->ns_scope;
apr_xml_ns_scope *ns_scope;
for (ns_scope = elem->ns_scope; ns_scope; ns_scope = ns_scope->next) {
if (strcmp(prefix, ns_scope->prefix) == 0) {