Hi tech,
matchlen = 0; is never used.
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++) {