summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/copy.c b/src/shared/copy.c
index 4c227c8bee..073b7279b4 100644
--- a/src/shared/copy.c
+++ b/src/shared/copy.c
@@ -203,6 +203,7 @@ static int fd_copy_directory(int df, const char *from, const struct stat *st, in
r = -errno;
}
+ r = 0;
FOREACH_DIRENT(de, d, return -errno) {
struct stat buf;
int q;