int i, err;
pkg_vec_t *depends = pkg_vec_alloc();
pkg_t *dep;
- char **unresolved = NULL;
+ char **tmp, **unresolved = NULL;
int ndepends;
ndepends = pkg_hash_fetch_unsatisfied_dependencies(conf,
opkg_message(conf, OPKG_ERROR,
"%s: Cannot satisfy the following dependencies for %s:\n\t",
conf->force_depends ? "Warning" : "ERROR", pkg->name);
+ tmp = unresolved;
while (*unresolved) {
opkg_message(conf, OPKG_ERROR, " %s", *unresolved);
+ free(*unresolved);
unresolved++;
}
+ free(tmp);
opkg_message(conf, OPKG_ERROR, "\n");
if (! conf->force_depends) {
opkg_message(conf, OPKG_INFO,