From c50ef3683a06ed569f9205fd6a3cc834f998a019 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Sun, 22 Apr 2001 00:03:23 +0000 Subject: [PATCH] ChangeLog --- main/filesdb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.5