Skip to content

Commit

Permalink
pubkey: isblank is a subset of isspace
Browse files Browse the repository at this point in the history
Therefore, there's no need to test both.

Signed-off-by: Jason A. Donenfeld <[email protected]>
  • Loading branch information
zx2c4 committed Aug 6, 2020
1 parent b4a8a18 commit cf2bf09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pubkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf2bf09

Please sign in to comment.