Trivial segfault fix from Richard B.
[sgt/putty] / unix / uxputty.c
index 8cd6603..dcfbd20 100644 (file)
@@ -174,6 +174,7 @@ int process_nonoption_arg(char *arg, Config *cfg)
         /*
          * Otherwise, treat this argument as a host name.
          */
+        p = arg;
         while (*p && !isspace((unsigned char)*p))
             p++;
         if (*p)