Explorar el Código

no point in declaring save_err locally

Mike Frysinger hace 20 años
padre
commit
7a653dd33e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libc/misc/ftw/ftw.c

+ 1 - 1
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);