X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=testbn.c;h=2ea4f459cd5c20661915da4244f7a18700249d7e;hb=50965a6411b8da9301501e91262bfe6cf8c808ae;hp=15f3b9806438f0a2a9f68c1fbf323124d26a3d4f;hpb=3ad0c89feca43af8c4e8ddb913bc232ad4fb5521;p=PuTTY.git diff --git a/testbn.c b/testbn.c index 15f3b980..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) { @@ -82,8 +82,6 @@ int main(int argc, char **argv) val = val * 16 + fromxdigit(start[i+1]); *q++ = val; } - - ptrs[ptrnum] = q; } if (!strcmp(buf, "mul")) {