2022-12-06 Paul Eggert <eggert@cs.ucla.edu>
+ fts: omit goto break_without_closedir
+ * lib/fts.c (fts_build): Refactor to omit goto.
+
fts: clarify ISSET
* lib/fts.c (ISSET): Refactor to clarify boolean usage.
cur->fts_info = (continue_readdir || nitems)
? FTS_ERR : FTS_DNR;
}
+ closedir_and_clear(cur->fts_dirp);
break;
}
if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name))
/* When there are too many dir entries, leave
fts_dirp open, so that a subsequent fts_read
can take up where we leave off. */
- goto break_without_closedir;
+ break;
}
}
- if (cur->fts_dirp)
- closedir_and_clear(cur->fts_dirp);
-
- break_without_closedir:
-
/*
* If realloc() changed the address of the file name, adjust the
* addresses for the rest of the tree and the dir list.