diff options
Diffstat (limited to 'usr.bin/su/su.c')
-rw-r--r-- | usr.bin/su/su.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index 26f4a3e..76f76b6 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -567,9 +567,8 @@ export_pam_environment(void) for (pp = environ_pam; *pp != NULL; pp++) { if (ok_to_export(*pp)) - (void)putenv(*pp); - else - free(*pp); + putenv(*pp); + free(*pp); } } |