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:
ikerexxe 2020-10-27 11:33:46 +01:00
parent f8642a1986
commit 2df8c0728d

View File

@ -445,7 +445,6 @@ int main (int argc, char **argv)
Prog = Basename (argv[0]);
is_newgrp = (strcmp (Prog, "newgrp") == 0);
OPENLOG (is_newgrp ? "newgrp" : "sg");
gid = getgid ();
argc--;
argv++;