forked from ariadne/pkgconf
pkg: use goto cleanup idiom
parent
38103134a5
commit
a391f9b650
|
@ -1470,21 +1470,18 @@ pkgconf_pkg_walk_list(pkgconf_client_t *client,
|
||||||
if (pkgdep->serial == client->serial)
|
if (pkgdep->serial == client->serial)
|
||||||
{
|
{
|
||||||
pkgdep->hits++;
|
pkgdep->hits++;
|
||||||
pkgconf_pkg_unref(client, pkgdep);
|
goto next;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skip_flags && (depnode->flags & skip_flags) == skip_flags)
|
if (skip_flags && (depnode->flags & skip_flags) == skip_flags)
|
||||||
{
|
goto next;
|
||||||
pkgconf_pkg_unref(client, pkgdep);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
pkgconf_audit_log_dependency(client, pkgdep, depnode);
|
pkgconf_audit_log_dependency(client, pkgdep, depnode);
|
||||||
|
|
||||||
pkgdep->hits++;
|
pkgdep->hits++;
|
||||||
pkgdep->serial = client->serial;
|
pkgdep->serial = client->serial;
|
||||||
eflags |= pkgconf_pkg_traverse_main(client, pkgdep, func, data, depth - 1, skip_flags);
|
eflags |= pkgconf_pkg_traverse_main(client, pkgdep, func, data, depth - 1, skip_flags);
|
||||||
|
next:
|
||||||
pkgconf_pkg_unref(client, pkgdep);
|
pkgconf_pkg_unref(client, pkgdep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue