sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.19k stars 221 forks source link

env_hooks: The val pointer variable is only used to return NULL #170

Closed likunyur closed 2 years ago

likunyur commented 2 years ago

I found some code that can be optimized: remove type cast. remove initial assignment. delete unnecessary pointer variables.