diff --git a/src/system/kernel/posix/realtime_sem.cpp b/src/system/kernel/posix/realtime_sem.cpp index e244fef100..2e25c53569 100644 --- a/src/system/kernel/posix/realtime_sem.cpp +++ b/src/system/kernel/posix/realtime_sem.cpp @@ -946,7 +946,7 @@ _user_realtime_sem_open(const char* userName, int openFlagsOrShared, // open the semaphore sem_t* usedUserSem; - bool created; + bool created = false; int32_t id; error = context->OpenSem(name, openFlagsOrShared, mode, semCount, userSem, usedUserSem, id, created);