diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2014-04-23 11:47:05 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2014-04-23 11:47:05 +0000 |
commit | de5670033a3075f50500da1ebfb5fea5565ae23c (patch) | |
tree | 4cbf5c83e0651edb06324a58a333ecd8fe064410 | |
parent | 5179e88c63459ef3d769138fa931b10f9ef2bdd4 (diff) |
Kill useless assignement, matchlen is initialized two lines below.
From Fritjof Bornebusch.
-rw-r--r-- | usr.bin/ftp/complete.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/ftp/complete.c b/usr.bin/ftp/complete.c index c453d54f444..bd249f9f370 100644 --- a/usr.bin/ftp/complete.c +++ b/usr.bin/ftp/complete.c @@ -1,4 +1,4 @@ -/* $OpenBSD: complete.c,v 1.26 2010/04/26 16:51:59 stsp Exp $ */ +/* $OpenBSD: complete.c,v 1.27 2014/04/23 11:47:04 jca Exp $ */ /* $NetBSD: complete.c,v 1.10 1997/08/18 10:20:18 lukem Exp $ */ /*- @@ -90,7 +90,6 @@ complete_ambiguous(char *word, int list, StringList *words) } if (!list) { - matchlen = 0; lastmatch = words->sl_str[0]; matchlen = strlen(lastmatch); for (i = 1 ; i < words->sl_cur ; i++) { |