X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Fopkg_cmd.c;fp=libopkg%2Fopkg_cmd.c;h=d0d2877cd32b4020c7bd7f935fd5c70d026c55c2;hp=a97255393650621e23799142ff9722e69672ebd4;hb=439c89e2be0ec0e62da6bd4b592964caff65bee1;hpb=0fb3e9f24ffe4fd04da800ca988d60d2ed835457 diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index a972553..d0d2877 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -1136,7 +1136,7 @@ opkg_what_provides_replaces_cmd(enum what_field_type what_field_type, int argc, 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; @@ -1148,7 +1148,6 @@ opkg_what_provides_replaces_cmd(enum what_field_type what_field_type, int argc, opkg_msg(NOTICE, "\t%s %s\n", rel_str, apkg->name); opkg_message(NOTICE, "\n"); - abpkgs++; } } }