libfreerdp-utils/memory: add a pointer check in xstrdup.
This commit is contained in:
parent
e5060dcaee
commit
7b2f737cee
@ -105,6 +105,9 @@ char* xstrdup(const char* str)
|
||||
{
|
||||
char* mem;
|
||||
|
||||
if (str == NULL)
|
||||
return NULL;
|
||||
|
||||
#ifdef _WIN32
|
||||
mem = _strdup(str);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user