artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1bd512
)
Kill useless assignement, matchlen is initialized two lines below.
author
jca
<jca@openbsd.org>
Wed, 23 Apr 2014 11:47:04 +0000
(11:47 +0000)
committer
jca
<jca@openbsd.org>
Wed, 23 Apr 2014 11:47:04 +0000
(11:47 +0000)
From Fritjof Bornebusch.
usr.bin/ftp/complete.c
patch
|
blob
|
history
diff --git
a/usr.bin/ftp/complete.c
b/usr.bin/ftp/complete.c
index
c453d54
..
bd249f9
100644
(file)
--- a/
usr.bin/ftp/complete.c
+++ b/
usr.bin/ftp/complete.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: complete.c,v 1.2
6 2010/04/26 16:51:59 stsp Exp $
*/
+/* $OpenBSD: complete.c,v 1.2
7 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++) {