1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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

Pointy hat to:	kib
Approved by:	re (bz)
This commit is contained in:
Konstantin Belousov 2011-08-17 12:37:14 +00:00
parent 9839387616
commit 68889ed699
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224935
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