mirror of
https://github.com/slicer69/doas
synced 2024-07-09 03:55:50 +00:00
remove obsolete initialization
This initializer is obsolete as targetname is initialized just prior the while loop and not touched elsewhere within the loop.
This commit is contained in:
parent
421af927d1
commit
ad8690ae38
1
doas.c
1
doas.c
|
@ -321,7 +321,6 @@ main(int argc, char **argv)
|
||||||
exit(i != -1);
|
exit(i != -1);
|
||||||
*/
|
*/
|
||||||
case 'u':
|
case 'u':
|
||||||
targetname[0] = '\0';
|
|
||||||
if (strlcpy(targetname, optarg, sizeof(targetname)) >= sizeof(targetname))
|
if (strlcpy(targetname, optarg, sizeof(targetname)) >= sizeof(targetname))
|
||||||
errx(1, "pw_name too long");
|
errx(1, "pw_name too long");
|
||||||
if (parseuid(targetname, &target) != 0)
|
if (parseuid(targetname, &target) != 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user