X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4763c1c2d66bb323b2b94a342cc39abbf1b0b1cb..04c52f109b8c4849d75c21898bdc63fdceea2a00:/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);