NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/53916: Variable 'matchlen' is set successively in usr.bin/ftp.c



>Number:         53916
>Category:       bin
>Synopsis:       Variable 'matchlen' is set successively in usr.bin/ftp.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 28 12:00:00 +0000 2019
>Originator:     Rob Gill
>Release:        n/a
>Organization:
>Environment:
n/a
>Description:
Variable matchlen is set on line 102, and again on line 104.

101 if (!list) {
102 	matchlen = 0;
103	lastmatch = words->sl_str[0];
104	matchlen = strlen(lastmatch);
105 for (i = 1 ; i < words->sl_cur ; i++) {


>How-To-Repeat:
n/a
>Fix:
delete line 102

102 	matchlen = 0;




Home | Main Index | Thread Index | Old Index