diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 12:51:02 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 12:51:02 +0000 |
| commit | 9e461e53cca0165c576f84491ad1a8afabdb354e (patch) | |
| tree | c3d8321777db4f120903935dcde828d1c175877d /usr.bin | |
| parent | 2efaac818fb265c1bf28bada95bf68f20432f9c3 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/su/su.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index 76f76b61e64d..26f4a3ef9209 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -567,8 +567,9 @@ export_pam_environment(void) for (pp = environ_pam; *pp != NULL; pp++) { if (ok_to_export(*pp)) - putenv(*pp); - free(*pp); + (void)putenv(*pp); + else + free(*pp); } } |
