Trivial segfault fix from Richard B.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 31 Mar 2003 12:57:36 +0000 (12:57 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 31 Mar 2003 12:57:36 +0000 (12:57 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@3036 cda61777-01e9-0310-a592-d414129be87e

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)