X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/93e6dee7a69ace772ed235ec34b0ccfddef69024..a97cd7806569d0b993b80cd99b7902b4d1f3aeda:/config.c diff --git a/config.c b/config.c index d5b50dd1..fd1379ab 100644 --- a/config.c +++ b/config.c @@ -1049,7 +1049,9 @@ static void portfwd_handler(union control *ctrl, void *dlg, { static const char *const afs = "A46"; char *afp = strchr(afs, *p); +#ifndef NO_IPV6 int idx = afp ? afp-afs : 0; +#endif if (afp) p++; #ifndef NO_IPV6