summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 15:34:07 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 15:34:07 +0000
commit7a653dd33ea22a5b153fa6775caf34b49b40f956 (patch)
tree1f43ebd893b4653f9dded62111a5fafa6fd43bd0
parent28db421a4b232068a10a4703e21af1a51a638847 (diff)
no point in declaring save_err locally
-rw-r--r--libc/misc/ftw/ftw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/ftw/ftw.c b/libc/misc/ftw/ftw.c
index 092a3757a..18da40a33 100644
--- a/libc/misc/ftw/ftw.c
+++ b/libc/misc/ftw/ftw.c
@@ -757,7 +757,7 @@ 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;
+ save_err = errno;
__chdir (cwd);
free (cwd);
__set_errno (save_err);