NetBSD-Bugs archive

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

bin/50999: src/bin/pax/dumptar.c:54:dead code ?



>Number:         50999
>Category:       bin
>Synopsis:       src/bin/pax/dumptar.c:54:dead code ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 24 11:50:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160324
>Organization:
>Environment:
>Description:
src/bin/pax/dumptar.c:54]: (style) Variable 'b' is assigned a value that is never used.


Source code is

     char *ep, *b = buf(p, s);

Suggest remove local variable b & call to function buf.

It then looks like parameter s doesn't get used, so maybe remove that too.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index