Redundant cast removal in sudoers_hooks

def_sudoers_locale is already a char*
This commit is contained in:
Rose
2023-05-05 12:06:26 -04:00
committed by Todd C. Miller
parent e095069d2a
commit b2a44430b5

View File

@@ -101,7 +101,7 @@ sudoers_hook_getenv(const char *name, char **value, void *closure)
goto done;
}
if (strcmp(name, "LC_ALL") == 0 || strcmp(name, "LC_MESSAGES") == 0) {
*value = (char *)def_sudoers_locale;
*value = def_sudoers_locale;
goto done;
}
}