Make sudo pass -Wwrite-strings

This commit is contained in:
Todd C. Miller
2022-06-28 16:33:15 -06:00
parent b3a8cad346
commit 13672f28df
77 changed files with 590 additions and 640 deletions

View File

@@ -202,8 +202,8 @@ main(int argc, char *argv[])
if (argc < 2) {
if (!dflag)
usage();
user_name = argc ? *argv++ : "root";
user_cmnd = user_base = "true";
user_name = argc ? *argv++ : (char *)"root";
user_cmnd = user_base = (char *)"true";
argc = 0;
} else {
user_name = *argv++;