summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-25 11:45:49 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-25 11:45:49 +0100
commit090bdc7e9451467946463a2658adb9e777813f1c (patch)
tree492bffde56daa53437f5bca815de13010d278549
parent23a11b68cdba71ae34fe1b2271606b167eb6a5b4 (diff)
downloadrtems-090bdc7e9451467946463a2658adb9e777813f1c.tar.bz2
posix: Fix use of uninitialized variable
Update #2859.
-rw-r--r--cpukit/posix/src/shmopen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/posix/src/shmopen.c b/cpukit/posix/src/shmopen.c
index fec443abba..3f3789f7d8 100644
--- a/cpukit/posix/src/shmopen.c
+++ b/cpukit/posix/src/shmopen.c
@@ -100,6 +100,8 @@ static int shm_close( rtems_libio_t *iop )
ISR_lock_Context lock_ctx;
int err;
+ err = 0;
+
_Objects_Allocator_lock();
--shm->reference_count;