From 81f069c2f2d7cf8e821a6e5119bf624fff8d76e8 Mon Sep 17 00:00:00 2001 From: jca Date: Wed, 23 Apr 2014 11:47:04 +0000 Subject: [PATCH] Kill useless assignement, matchlen is initialized two lines below. From Fritjof Bornebusch. --- usr.bin/ftp/complete.c | 3 +-- 1 file changed, 1 insertion(+), 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++) { -- 2.20.1