X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=testbn.c;h=2ea4f459cd5c20661915da4244f7a18700249d7e;hb=2e5212fb41e7e1851aed802e76dfe3e9529bb9ad;hp=15f3b9806438f0a2a9f68c1fbf323124d26a3d4f;hpb=984fe3dde809681f91d72152a4f96e91d79a2855;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")) {