summaryrefslogtreecommitdiff
path: root/src/libs6/ftrigw_clean.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6/ftrigw_clean.c')
-rw-r--r--src/libs6/ftrigw_clean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6/ftrigw_clean.c b/src/libs6/ftrigw_clean.c
index 3253f7a..3ad9e3a 100644
--- a/src/libs6/ftrigw_clean.c
+++ b/src/libs6/ftrigw_clean.c
@@ -33,7 +33,7 @@ int ftrigw_clean (char const *path)
else if ((errno == ENXIO) && (unlink(tmp) < 0)) e = errno ;
}
}
- if (errno) e = errno ;
dir_close(dir) ;
+ if (errno) e = errno ;
return e ? (errno = e, 0) : 1 ;
}