diff options
author | kib <kib@FreeBSD.org> | 2011-08-17 12:37:14 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-08-17 12:37:14 +0000 |
commit | 324611138f42e3d7da30299e93065769ba5f1ff6 (patch) | |
tree | 0d84b35da4b1386c8f5ebf08175fcea6f6bedb09 | |
parent | faed057a37aea66f5aab5479bcd2dc76ca146025 (diff) | |
download | FreeBSD-src-324611138f42e3d7da30299e93065769ba5f1ff6.zip FreeBSD-src-324611138f42e3d7da30299e93065769ba5f1ff6.tar.gz |
Fix build breakage. Initialize error variables explicitely for !MAC case.
Pointy hat to: kib
Approved by: re (bz)
-rw-r--r-- | sys/kern/uipc_sem.c | 1 | ||||
-rw-r--r-- | sys/kern/uipc_shm.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c index 95c29c0..f77bf3b 100644 --- a/sys/kern/uipc_sem.c +++ b/sys/kern/uipc_sem.c @@ -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 diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c index 45989cf..57fd5eb 100644 --- a/sys/kern/uipc_shm.c +++ b/sys/kern/uipc_shm.c @@ -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 |