realtime_sem: fixed a compiler warning.

* the variable is initialized anyway on the success code path.
This commit is contained in:
Jérôme Duval 2013-09-07 11:34:21 +02:00
parent 986b702f54
commit c4a8ae38d4

View File

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