X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/a3a48ced1a2daac7d94908c61259d591338cb371..df7c7e52e8be2b65dbfc4ffc49ccf6b0c6c42b76:/unix/uxputty.c diff --git a/unix/uxputty.c b/unix/uxputty.c index 0abc1ff8..54e0d71b 100644 --- a/unix/uxputty.c +++ b/unix/uxputty.c @@ -53,7 +53,7 @@ static int got_host = 0; const int use_event_log = 1, new_session = 1, saved_sessions = 1; -int process_nonoption_arg(char *arg, Config *cfg) +int process_nonoption_arg(char *arg, Config *cfg, int *allow_launch) { char *p, *q = arg; @@ -104,6 +104,8 @@ int process_nonoption_arg(char *arg, Config *cfg) cfg->host[sizeof(cfg->host) - 1] = '\0'; got_host = 1; } + if (got_host) + *allow_launch = TRUE; return 1; }