1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

childerr needs to be volatile so gcc won't optimize it away.

PR:		bin/85830
MFC after:	1 week
This commit is contained in:
Dag-Erling Smørgrav 2006-11-10 23:33:25 +00:00
parent 330cdc3318
commit 1cede0c9bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164154

View File

@ -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)