posix: Fix use of uninitialized variable

Update #2859.
This commit is contained in:
Sebastian Huber
2017-01-25 11:45:49 +01:00
parent 23a11b68cd
commit 090bdc7e94

View File

@@ -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;