X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5fc71a3dbd599f2f4763b77f5a0326546ed18af0..dee42491003c8fdd01bd039da46b9d6a2d171584:/windows/winplink.c?ds=sidebyside diff --git a/windows/winplink.c b/windows/winplink.c index 602ec7bc..1fb3ee0b 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -425,8 +425,6 @@ int main(int argc, char **argv) cfg.port = default_port; } else { cfg = cfg2; - /* Ick: patch up internal pointer after copy */ - cfg.remote_cmd_ptr = cfg.remote_cmd; } } @@ -529,7 +527,7 @@ int main(int argc, char **argv) cfg.host[p1] = '\0'; } - if (!*cfg.remote_cmd_ptr) + if (!cfg.remote_cmd_ptr && !*cfg.remote_cmd) flags |= FLAG_INTERACTIVE; /*