1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 14:39:24 -05:00

Forgot to match the cmdline changes in the Unix port.

[originally from svn r2558]
This commit is contained in:
Simon Tatham 2003-01-12 14:37:26 +00:00
parent 10eb26a7dd
commit f35cbdce44

View File

@ -301,7 +301,8 @@ int main(int argc, char **argv)
while (--argc) { while (--argc) {
char *p = *++argv; char *p = *++argv;
if (*p == '-') { if (*p == '-') {
int ret = cmdline_process_param(p, (argc > 1 ? argv[1] : NULL), 1); int ret = cmdline_process_param(p, (argc > 1 ? argv[1] : NULL),
1, &cfg);
if (ret == -2) { if (ret == -2) {
fprintf(stderr, fprintf(stderr,
"plink: option \"%s\" requires an argument\n", p); "plink: option \"%s\" requires an argument\n", p);
@ -479,7 +480,7 @@ int main(int argc, char **argv)
/* /*
* Perform command-line overrides on session configuration. * Perform command-line overrides on session configuration.
*/ */
cmdline_run_saved(); cmdline_run_saved(&cfg);
/* /*
* Trim a colon suffix off the hostname if it's there. * Trim a colon suffix off the hostname if it's there.