X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/94042edc7e0f99a2265e765606c45ea4f4f2e62e..8154b6022bd42b4aba03fc9adcbabd4f588b6575:/config.c diff --git a/config.c b/config.c index 8250e1c4..1501f619 100644 --- a/config.c +++ b/config.c @@ -402,7 +402,7 @@ static void sessionsaver_handler(union control *ctrl, void *dlg, /* If at this point we have a valid session, go! */ if (*cfg2.host) { *cfg = cfg2; /* structure copy */ - cfg->remote_cmd_ptr = cfg->remote_cmd; /* nasty */ + cfg->remote_cmd_ptr = NULL; dlg_end(dlg, 1); } else dlg_beep(dlg);