Explorar el Código

Bugfix

Bug reported in
  http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00014.html

* src/names.c (collect_and_sort_names): Fix iteration over namelist.
Sergey Poznyakoff hace 6 años
padre
commit
ea3aea06f1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/names.c

+ 1 - 1
src/names.c

@@ -1857,7 +1857,7 @@ collect_and_sort_names (void)
 
   if (listed_incremental_option)
     {
-      for (name = namelist; name && name->name[0] == 0; name++)
+      for (name = namelist; name && name->name[0] == 0; name = name->next)
 	;
       if (name)
 	append_incremental_renames (name->directory);