From 5c830d40e03fe01db650f52292c6cfa3fced01a2 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@fb.com>
Date: Mon, 30 Jan 2023 08:33:10 -0800
Subject: [PATCH] digest.c: remove a duplicate variable

* src/digest.c (digest_check): Locals n_misformatted_lines and
n_improperly_formatted_lines were declared and set/incremented
identically. Remove declaration of the latter. Use the other instead.
---
 src/digest.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/digest.c b/src/digest.c
index 20c9940bf..8f9354b6a 100644
--- a/src/digest.c
+++ b/src/digest.c
@@ -1026,7 +1026,6 @@ digest_check (char const *checkfile_name)
 {
   FILE *checkfile_stream;
   uintmax_t n_misformatted_lines = 0;
-  uintmax_t n_improperly_formatted_lines = 0;
   uintmax_t n_mismatched_checksums = 0;
   uintmax_t n_open_or_read_failures = 0;
   bool properly_formatted_lines = false;
@@ -1102,8 +1101,6 @@ digest_check (char const *checkfile_name)
                      quotef (checkfile_name), line_number,
                      DIGEST_TYPE_STRING);
             }
-
-          ++n_improperly_formatted_lines;
         }
       else
         {
@@ -1236,7 +1233,7 @@ digest_check (char const *checkfile_name)
           && matched_checksums
           && n_mismatched_checksums == 0
           && n_open_or_read_failures == 0
-          && (!strict || n_improperly_formatted_lines == 0));
+          && (!strict || n_misformatted_lines == 0));
 }

 int
-- 
2.39.1.367.g5cc9858f1b

