`-load sessname', and that mentions a hostname, that should be sufficient
to start a connection.
git-svn-id: svn://svn.tartarus.org/sgt/putty@4369
cda61777-01e9-0310-a592-
d414129be87e
back = NULL;
/*
+ * If the loaded session provides a hostname, and a hostname has not
+ * otherwise been specified, pop it in `userhost' so that
+ * `psftp -load sessname' is sufficient to start a session.
+ */
+ if (!userhost && cfg.host[0] != '\0') {
+ userhost = dupstr(cfg.host);
+ }
+
+ /*
* If a user@host string has already been provided, connect to
* it now.
*/