]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Simplify wordsplit_string_unquote_copy
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Sep 2023 05:33:55 +0000 (00:33 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Sep 2023 04:23:41 +0000 (23:23 -0500)
* lib/wordsplit.c (wordsplit_string_unquote_copy): Simplify.

lib/wordsplit.c

index 86683a438790552b4cc7e17840e12e5e8a950580..82dfa9d09823a1b150404a49be296d325ffb8399 100644 (file)
@@ -2194,7 +2194,7 @@ wordsplit_string_unquote_copy (struct wordsplit *ws, int inquote,
                }
            }
          else if (WRDSO_ESC_TEST (ws, inquote, WRDSO_OESC)
-                  && (unsigned char) src[i] < 128 && c_isdigit (src[i]))
+                  && c_isdigit (src[i]))
            {
              if (n - i < 1)
                {