Browse Source

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 6 years ago
parent
commit
ea3aea06f1
1 changed files with 1 additions and 1 deletions
  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);