Fixed coverity issue 1047588
This commit is contained in:
parent
75c0ecb362
commit
629ac4ad28
@ -39,6 +39,8 @@ HANDLE CreateSemaphoreW(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lIniti
|
||||
WINPR_SEMAPHORE* semaphore;
|
||||
|
||||
semaphore = (WINPR_SEMAPHORE*) malloc(sizeof(WINPR_SEMAPHORE));
|
||||
if (!semaphore)
|
||||
return NULL;
|
||||
|
||||
semaphore->pipe_fd[0] = -1;
|
||||
semaphore->pipe_fd[0] = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user