mirror of https://github.com/FreeRDP/FreeRDP
Fixed NULL argument warning.
This commit is contained in:
parent
27d2a9e040
commit
55e9132fa4
|
@ -169,7 +169,8 @@ HANDLE CreateMutexA(LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner,
|
|||
if (bInitialOwner)
|
||||
pthread_mutex_lock(&mutex->mutex);
|
||||
|
||||
mutex->name = strdup(lpName); /* Non runtime relevant information, skip NULL check */
|
||||
if (lpName)
|
||||
mutex->name = strdup(lpName); /* Non runtime relevant information, skip NULL check */
|
||||
}
|
||||
|
||||
return handle;
|
||||
|
|
Loading…
Reference in New Issue