]> err.no Git - dpkg/commitdiff
ChangeLog
authorWichert Akkerman <wakkerma@debian.org>
Sun, 22 Apr 2001 00:03:23 +0000 (00:03 +0000)
committerWichert Akkerman <wakkerma@debian.org>
Sun, 22 Apr 2001 00:03:23 +0000 (00:03 +0000)
main/filesdb.c

index 342aa6e81cd8c32411474f8d70f257d7dcf497b0..6b4927c63de1aea6663ef6cbfdf47a3916503d38 100644 (file)
@@ -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;