From: Sergey Poznyakoff Date: Fri, 21 Dec 2018 11:42:29 +0000 (+0200) Subject: Bugfix X-Git-Tag: release_1_31~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea3aea06f1da077dbb4092672dc7e8768ae4f84e;p=thirdparty%2Ftar.git 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. --- 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);