Fixed NULL argument warning.

This commit is contained in:
Armin Novak 2019-02-08 09:05:36 +01:00
parent 27d2a9e040
commit 55e9132fa4
1 changed files with 2 additions and 1 deletions

View File

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