X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/bea1ef5fee9d834f22e6b3092815e577dde347cf..f25da523d156f0d30858552e0eec860462df1ca8:/windlg.c diff --git a/windlg.c b/windlg.c index a1e463ec..e7d58fd6 100644 --- a/windlg.c +++ b/windlg.c @@ -42,8 +42,6 @@ static void mungestr(char *in, char *out) { } static void unmungestr(char *in, char *out) { - int candot = 0; - while (*in) { if (*in == '%' && in[1] && in[2]) { int i, j; @@ -226,7 +224,6 @@ static void load_settings (char *section, int do_host) { } free(p); - RegCloseKey(subkey1); if (do_host) { char prot[10]; @@ -238,6 +235,7 @@ static void load_settings (char *section, int do_host) { else cfg.protocol = PROT_TELNET; } else { + cfg.protocol = PROT_TELNET; cfg.port = 23; *cfg.host = '\0'; }