]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
pubkey: isblank is a subset of isspace
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 4 Aug 2020 12:04:52 +0000 (14:04 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 6 Aug 2020 15:47:14 +0000 (17:47 +0200)
Therefore, there's no need to test both.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/pubkey.c

index 19235fc25067cc20410dbdbf33901c4b063c3beb..a78fe117d46f92cca3bb4a99e47605dd4e695fe3 100644 (file)
@@ -31,7 +31,7 @@ int pubkey_main(int argc, char *argv[])
 
        for (;;) {
                trailing_char = getc(stdin);
-               if (!trailing_char || isspace(trailing_char) || isblank(trailing_char))
+               if (!trailing_char || isspace(trailing_char))
                        continue;
                if (trailing_char == EOF)
                        break;