]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Remove unreachable assignment to mtime.tv_nsec
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Nov 2025 08:07:26 +0000 (00:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Nov 2025 23:10:48 +0000 (15:10 -0800)
Caught by Oracle Developer Studio 12.6
* src/incremen.c (read_incr_db_01): Remove unreachable code.

src/incremen.c

index 7a8327d3de5af9d2ec318a895faae04a1cd36af8..c4c9dd45d8e03a155196b5504c87b2319e9ca457 100644 (file)
@@ -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