mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
libfreerdp-utils/memory: add a pointer check in xstrdup.
This commit is contained in:
@@ -105,6 +105,9 @@ char* xstrdup(const char* str)
|
||||
{
|
||||
char* mem;
|
||||
|
||||
if (str == NULL)
|
||||
return NULL;
|
||||
|
||||
#ifdef _WIN32
|
||||
mem = _strdup(str);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user