From: Sergey Poznyakoff Date: Tue, 13 May 2025 14:59:15 +0000 (+0300) Subject: Minor changes X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9324b472b045508245cfedfdd029e8865a69f054;p=thirdparty%2Ftar.git Minor changes --- diff --git a/src/common.h b/src/common.h index 5d4f83bf..5d7cfae7 100644 --- a/src/common.h +++ b/src/common.h @@ -809,16 +809,16 @@ COMMON_INLINE bool isfound (struct name const *c) { return (occurrence_option == 0 - ? (c)->found_count != 0 - : (c)->found_count == occurrence_option); + ? c->found_count != 0 + : c->found_count == occurrence_option); } COMMON_INLINE bool wasfound (struct name const *c) { return (occurrence_option == 0 - ? (c)->found_count != 0 - : occurrence_option <= (c)->found_count); + ? c->found_count != 0 + : occurrence_option <= c->found_count); } /* Module tar.c. */ diff --git a/src/names.c b/src/names.c index ced15aee..0d849fbf 100644 --- a/src/names.c +++ b/src/names.c @@ -1198,7 +1198,7 @@ name_gather (void) namelist = nametail = buffer; } else if (change_dir) - addname (0, change_dir, false, NULL); + addname (NULL, change_dir, false, NULL); } else {