]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - testbn.c
Regard dir/ls on non-existent directory as an error.
[PuTTY.git] / testbn.c
index 15f3b9806438f0a2a9f68c1fbf323124d26a3d4f..2ea4f459cd5c20661915da4244f7a18700249d7e 100644 (file)
--- 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")) {