Fritjof Bornebusch <[email protected]> writes:
> Hi tech,
>
> matchlen = 0; is never used.
Committed, thanks.
> Fritjof
>
> Index: complete.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/ftp/complete.c,v
> retrieving revision 1.26
> diff -u -p -r1.26 complete.c
> --- complete.c 26 Apr 2010 16:51:59 -0000 1.26
> +++ complete.c 22 Apr 2014 23:27:47 -0000
> @@ -90,7 +90,6 @@ complete_ambiguous(char *word, int list,
> }
>
> if (!list) {
> - matchlen = 0;
> lastmatch = words->sl_str[0];
> matchlen = strlen(lastmatch);
> for (i = 1 ; i < words->sl_cur ; i++) {
>
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE