mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-08-22 09:16:02 +00:00
Remove useless check
* src/exclist.c (info_attach_exclist): Don't check whether dir is NULL. It can't be.
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ info_attach_exclist (struct tar_stat_info *dir)
|
||||
return;
|
||||
for (file = excfile_head; file; file = file->next)
|
||||
{
|
||||
if (faccessat (dir ? dir->fd : chdir_fd, file->name, F_OK, 0) == 0)
|
||||
if (faccessat (dir->fd, file->name, F_OK, 0) == 0)
|
||||
{
|
||||
FILE *fp;
|
||||
struct exclude *ex = NULL;
|
||||
|
||||
Reference in New Issue
Block a user