Fix the loop semantics in opkg_what_provides_replaces_cmd() to properly
advance the package vector pointer.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
abpkgs = pkg_get_ptr(pkg, (what_field_type == WHATPROVIDES) ? PKG_PROVIDES : PKG_REPLACES);
while (abpkgs && *abpkgs) {
- apkg = *abpkgs;
+ apkg = *abpkgs++;
if (fnmatch(target, apkg->name, conf->nocase))
continue;
opkg_msg(NOTICE, "\t%s %s\n", rel_str, apkg->name);
opkg_message(NOTICE, "\n");
- abpkgs++;
}
}
}