1
0
mirror of https://github.com/slicer69/doas synced 2024-07-05 17:08:34 +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:
helmat 2022-09-21 07:30:04 +02:00 committed by GitHub
parent 421af927d1
commit ad8690ae38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
doas.c
View File

@ -321,7 +321,6 @@ main(int argc, char **argv)
exit(i != -1);
*/
case 'u':
targetname[0] = '\0';
if (strlcpy(targetname, optarg, sizeof(targetname)) >= sizeof(targetname))
errx(1, "pw_name too long");
if (parseuid(targetname, &target) != 0)