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:
parent
54d45f602c
commit
6d47285462
@ -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;
|
||||
|
||||
/*
|
||||
|
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user