Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp PR/53916: Rob Gill: remove redundant assignment ...
details: https://anonhg.NetBSD.org/src/rev/b4bf258fb952
branches: trunk
changeset: 838707:b4bf258fb952
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 28 12:04:16 2019 +0000
description:
PR/53916: Rob Gill: remove redundant assignment to matchlen.
diffstat:
usr.bin/ftp/complete.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r fb38a4ef3523 -r b4bf258fb952 usr.bin/ftp/complete.c
--- a/usr.bin/ftp/complete.c Mon Jan 28 04:09:51 2019 +0000
+++ b/usr.bin/ftp/complete.c Mon Jan 28 12:04:16 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: complete.c,v 1.46 2009/04/12 10:18:52 lukem Exp $ */
+/* $NetBSD: complete.c,v 1.47 2019/01/28 12:04:16 christos Exp $ */
/*-
* Copyright (c) 1997-2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: complete.c,v 1.46 2009/04/12 10:18:52 lukem Exp $");
+__RCSID("$NetBSD: complete.c,v 1.47 2019/01/28 12:04:16 christos Exp $");
#endif /* not lint */
/*
@@ -99,11 +99,10 @@
}
if (!list) {
- matchlen = 0;
lastmatch = words->sl_str[0];
matchlen = strlen(lastmatch);
for (i = 1 ; i < words->sl_cur ; i++) {
- for (j = wordlen ; j < strlen(words->sl_str[i]); j++)
+ for (j = wordlen; j < strlen(words->sl_str[i]); j++)
if (lastmatch[j] != words->sl_str[i][j])
break;
if (j < matchlen)
Home |
Main Index |
Thread Index |
Old Index