From: Wichert Akkerman Date: Sun, 22 Apr 2001 00:03:23 +0000 (+0000) Subject: ChangeLog X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c50ef3683a06ed569f9205fd6a3cc834f998a019;p=dpkg ChangeLog --- diff --git a/main/filesdb.c b/main/filesdb.c index 342aa6e8..6b4927c6 100644 --- a/main/filesdb.c +++ b/main/filesdb.c @@ -174,9 +174,9 @@ void ensure_packagefiles_available(struct pkginfo *pkg) { for (newent= pkg->clientdata->files; newent; newent= newent->next) { packageslump= newent->namenode->packages; + putat= 0; if (packageslump) { - for (putat= 0; - putat < PERFILEPACKAGESLUMP && packageslump->pkgs[putat]; + for (; putat < PERFILEPACKAGESLUMP && packageslump->pkgs[putat]; putat++); if (putat >= PERFILEPACKAGESLUMP) packageslump= 0; } @@ -184,7 +184,6 @@ void ensure_packagefiles_available(struct pkginfo *pkg) { packageslump= nfmalloc(sizeof(struct filepackages)); packageslump->more= newent->namenode->packages; newent->namenode->packages= packageslump; - putat= 0; } packageslump->pkgs[putat]= pkg; if (++putat < PERFILEPACKAGESLUMP) packageslump->pkgs[putat]= 0;