]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Bugfix
authorSergey Poznyakoff <gray@gnu.org>
Fri, 21 Dec 2018 11:42:29 +0000 (13:42 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Fri, 21 Dec 2018 11:54:12 +0000 (13:54 +0200)
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.

src/names.c

index d3728d84e0fb112671b78c0aa76b3e57ca624f1c..025b6822b8c70e9287b927750983c5482bfe5cf4 100644 (file)
@@ -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);