NetBSD-Bugs archive

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

bin/51299: src/usr.bin/utoppya/utoppya.c: 2 * redundant condition ?



>Number:         51299
>Category:       bin
>Synopsis:       src/usr.bin/utoppya/utoppya.c: 2 * redundant condition ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 30 08:50:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160630
>Organization:
>Environment:
>Description:

src/usr.bin/utoppya/utoppya.c:292]: (style) Redundant condition: If 'EXPR == '\\'', the comparison 'EXPR' is always true.
src/usr.bin/utoppya/utoppya.c:294]: (style) Redundant condition: If 'EXPR == '\\'', the comparison 'EXPR' is always true.

Source code is

    for (o = oldpath; *o && *o == '\\'; o++)
        ;
    for (n = newpath; *n && *n == '\\'; n++)
        ;




>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index