Fix build breakage. Initialize error variables explicitely for !MAC case.

Pointy hat to:	kib
Approved by:	re (bz)
This commit is contained in:
kib 2011-08-17 12:37:14 +00:00
parent faed057a37
commit 324611138f
2 changed files with 2 additions and 0 deletions

View File

@ -270,6 +270,7 @@ ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
struct ksem *ks;
int error;
error = 0;
ks = fp->f_data;
mtx_lock(&sem_lock);
#ifdef MAC

View File

@ -699,6 +699,7 @@ shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
struct shmfd *shmfd;
int error;
error = 0;
shmfd = fp->f_data;
mtx_lock(&shm_timestamp_lock);
#ifdef MAC