diff options
Diffstat (limited to 'bftw.c')
-rw-r--r-- | bftw.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -755,6 +755,7 @@ static size_t basename_offset(const char *path) { static void bftw_init_buffers(struct bftw_state *state, const struct dirent *de) { struct BFTW *ftwbuf = &state->ftwbuf; ftwbuf->path = state->path; + ftwbuf->root = state->root; ftwbuf->error = 0; ftwbuf->visit = (state->status == BFTW_GC ? BFTW_POST : BFTW_PRE); ftwbuf->statbuf = NULL; |