From: Jason A. Donenfeld Date: Tue, 4 Aug 2020 12:04:52 +0000 (+0200) Subject: pubkey: isblank is a subset of isspace X-Git-Tag: v1.0.20200820~3 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf2bf0952498059c6a8987bb54b58987748af7e2;p=thirdparty%2Fwireguard-tools.git pubkey: isblank is a subset of isspace Therefore, there's no need to test both. Signed-off-by: Jason A. Donenfeld --- diff --git a/src/pubkey.c b/src/pubkey.c index 19235fc..a78fe11 100644 --- a/src/pubkey.c +++ b/src/pubkey.c @@ -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;