1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Adjust the semantics of cfg.remote_cmd_ptr: it is now NULL when

cfg.remote_cmd is to be used, rather than actually pointing at
cfg.remote_cmd. This change restores the ability to structure-copy
Configs without breaking them. (Though of course this is only a
temporary solution: really what wants doing is to fix
`config-struct'.)

[originally from svn r5335]
This commit is contained in:
Simon Tatham
2005-02-17 19:31:32 +00:00
parent fceaa2e4a7
commit 0598df9217
3 changed files with 5 additions and 2 deletions

View File

@ -406,7 +406,7 @@ void load_open_settings(void *sesskey, int do_host, Config *cfg)
char prot[10];
cfg->ssh_subsys = 0; /* FIXME: load this properly */
cfg->remote_cmd_ptr = cfg->remote_cmd;
cfg->remote_cmd_ptr = NULL;
cfg->remote_cmd_ptr2 = NULL;
if (do_host) {