X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Frestore.c;h=94e0bb6cc8f853c5a4243aeaf0c2dcf738568a2c;hp=5fcff708c0d9a205d3483718cd515b3e72b23aac;hb=c21722b0a369bad430dc8c06d645cfd75854a6ec;hpb=1ba0c4bb3595ad2d15cd378e989933a883c8f77e diff --git a/restore/restore.c b/restore/restore.c index 5fcff70..94e0bb6 100644 --- a/restore/restore.c +++ b/restore/restore.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: restore.c,v 1.35 2004/12/15 11:00:01 stelian Exp $"; + "$Id: restore.c,v 1.36 2005/03/18 22:12:55 stelian Exp $"; #endif /* not lint */ #include @@ -635,15 +635,19 @@ removeoldnodes(void) change = 0; prev = &removelist; for (ep = removelist; ep != NULL; ep = *prev) { + int docont = 0; if (ep->e_entries != NULL) { int i; for (i = 0; i < DIRHASH_SIZE; i++) { if (ep->e_entries[i] != NULL) { prev = &ep->e_next; - continue; + docont = 1; + break; } } } + if (docont) + continue; *prev = ep->e_next; removenode(ep); freeentry(ep);