1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Fallout from my change in the semantics of cfg.remote_cmd_ptr.

Spotted by Alano na Alania.

[originally from svn r5386]
This commit is contained in:
Simon Tatham 2005-02-23 09:25:39 +00:00
parent 54d45f602c
commit 6d47285462
2 changed files with 2 additions and 6 deletions

View File

@ -414,8 +414,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;
}
}
@ -518,7 +516,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;
/*

View File

@ -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;
/*