X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afs.c;h=d889ec771c9cc0d5c10860621528752faa778888;hp=c410854c1129a91a811d21101886276aae731a2e;hb=a21f92eaa30b57eb353f88e92f39688700d04dcc;hpb=1b5148109a273e7a30255ab3a705ca49f71e046f;ds=sidebyside diff --git a/afs.c b/afs.c index c410854c..d889ec77 100644 --- a/afs.c +++ b/afs.c @@ -684,12 +684,12 @@ static int open_afs_tables(void) continue; PARA_ERROR_LOG("%s init: %s\n", afs_tables[i].name, PARA_STRERROR(-ret)); + break; } if (ret >= 0) return ret; - do - afs_tables[i].close(); - while (i--); + while (i) + afs_tables[--i].close(); return ret; }