From bda87b39e40ec4e75309cdf778dfc9cd339fdeeb Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 14 Feb 2017 20:39:22 +0000 Subject: [PATCH] Fix a typoed end-of-string check in testbn. I was testing the actual pointer against NULL instead of testing the pointed-to character against NUL. --- testbn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbn.c b/testbn.c index 576c18b7..2ea4f459 100644 --- a/testbn.c +++ b/testbn.c @@ -55,7 +55,7 @@ int main(int argc, char **argv) while (*bufp && !isspace((unsigned char)*bufp)) bufp++; - if (bufp) + if (*bufp) *bufp++ = '\0'; while (*bufp) { -- 2.45.1