Fix build breakage. Initialize error variables explicitely for !MAC case.
Pointy hat to: kib Approved by: re (bz)
This commit is contained in:
parent
faed057a37
commit
324611138f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user