newgrp: delete dead code
covscan issue: Error: CLANG_WARNING: [#def31] src/newgrp.c:448:2: warning: Value stored to 'gid' is never read [deadcode.DeadStores] gid = getgid ();
This commit is contained in:
parent
f8642a1986
commit
2df8c0728d
@ -445,7 +445,6 @@ int main (int argc, char **argv)
|
|||||||
Prog = Basename (argv[0]);
|
Prog = Basename (argv[0]);
|
||||||
is_newgrp = (strcmp (Prog, "newgrp") == 0);
|
is_newgrp = (strcmp (Prog, "newgrp") == 0);
|
||||||
OPENLOG (is_newgrp ? "newgrp" : "sg");
|
OPENLOG (is_newgrp ? "newgrp" : "sg");
|
||||||
gid = getgid ();
|
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user