From: Paul Eggert Date: Fri, 14 Nov 2025 08:07:26 +0000 (-0800) Subject: Remove unreachable assignment to mtime.tv_nsec X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83cad5835ff5bb1586308cf6d8f55e048953d938;p=thirdparty%2Ftar.git Remove unreachable assignment to mtime.tv_nsec Caught by Oracle Developer Studio 12.6 * src/incremen.c (read_incr_db_01): Remove unreachable code. --- diff --git a/src/incremen.c b/src/incremen.c index 7a8327d3..c4c9dd45 100644 --- a/src/incremen.c +++ b/src/incremen.c @@ -1086,12 +1086,9 @@ read_incr_db_01 (bool version_1, char **pbuf, size_t *pbufsize) bool overflow; mtime.tv_nsec = stoint (strp, &ebuf, &overflow, 0, BILLION - 1); if ((ebuf == strp) | (*ebuf != ' ') | overflow) - { - paxfatal (0, "%s:%jd: %s", - quotearg_colon (listed_incremental_option), lineno, - _("Invalid modification time (nanoseconds)")); - mtime.tv_nsec = -1; - } + paxfatal (0, "%s:%jd: %s", + quotearg_colon (listed_incremental_option), lineno, + _("Invalid modification time (nanoseconds)")); strp = ebuf; } else