[PATCH 1/2] posix: Fix use of uninitialized variable

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jan 25 10:48:22 UTC 2017


Update #2859.
---
 cpukit/posix/src/shmopen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/posix/src/shmopen.c b/cpukit/posix/src/shmopen.c
index fec443a..3f3789f 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;
-- 
1.8.4.5



More information about the devel mailing list