diff --git a/lib/ftw.c b/lib/ftw.c index 77dface8b..a3679db7f 100644 --- a/lib/ftw.c +++ b/lib/ftw.c @@ -634,10 +634,10 @@ ftw_startup (const char *dir, int is_nftw, void *func, int descriptors, /* Return to the start directory (if necessary). */ if (cwd != NULL) { - int save_err = errno; + int saved_errno = errno; __chdir (cwd); free (cwd); - __set_errno (save_err); + __set_errno (saved_errno); } /* Free all memory. */