summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-12-21 13:42:29 +0200
committerSergey Poznyakoff <gray@gnu.org>2018-12-21 13:54:12 +0200
commitea3aea06f1da077dbb4092672dc7e8768ae4f84e (patch)
treedd6824a40f4d6f139ce6b930da719e736a34f459
parent983a82a3767da04cb3ca15eefe2e4b21154c335f (diff)
downloadtar-ea3aea06f1da077dbb4092672dc7e8768ae4f84e.tar.gz
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.
-rw-r--r--src/names.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/names.c b/src/names.c
index d3728d84..025b6822 100644
--- a/src/names.c
+++ b/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);