summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2006-11-10 23:33:25 +0000
committerdes <des@FreeBSD.org>2006-11-10 23:33:25 +0000
commitcd277df0bb233f1107603284c3a160846855b3a1 (patch)
treed3d6454b2b209017a27bbc37b8c98696a709f2cd /lib
parent2fdb0b5663212a5ee5a80f970b55757fdb85cdfc (diff)
downloadFreeBSD-src-cd277df0bb233f1107603284c3a160846855b3a1.zip
FreeBSD-src-cd277df0bb233f1107603284c3a160846855b3a1.tar.gz
childerr needs to be volatile so gcc won't optimize it away.
PR: bin/85830 MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libpam/modules/pam_exec/pam_exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_exec/pam_exec.c b/lib/libpam/modules/pam_exec/pam_exec.c
index e4a35ee..b27718f 100644
--- a/lib/libpam/modules/pam_exec/pam_exec.c
+++ b/lib/libpam/modules/pam_exec/pam_exec.c
@@ -63,8 +63,9 @@ static int
_pam_exec(pam_handle_t *pamh __unused, int flags __unused,
int argc, const char *argv[])
{
- int childerr, envlen, i, nitems, pam_err, status;
+ int envlen, i, nitems, pam_err, status;
char *env, **envlist, **tmp;
+ volatile int childerr;
pid_t pid;
if (argc < 1)
OpenPOWER on IntegriCloud