PSCP now uses the modern SFTP protocol if it can, and falls back to
[u/mdw/putty] / plink.c
diff --git a/plink.c b/plink.c
index 2802feb..d8ef32b 100644 (file)
--- a/plink.c
+++ b/plink.c
@@ -471,6 +471,7 @@ int main(int argc, char **argv)
                    command[cmdlen++] = d;
                } while (c != EOF);
                cfg.remote_cmd_ptr = command;
+               cfg.remote_cmd_ptr2 = NULL;
                cfg.nopty = TRUE;      /* command => no terminal */
            } else if (!strcmp(p, "-P") && argc > 1) {
                --argc, portnumber = atoi(*++argv);