libfreerdp-utils/memory: add a pointer check in xstrdup.

This commit is contained in:
Vic Lee 2011-09-25 11:49:09 +08:00
parent e5060dcaee
commit 7b2f737cee

View File

@ -105,6 +105,9 @@ char* xstrdup(const char* str)
{
char* mem;
if (str == NULL)
return NULL;
#ifdef _WIN32
mem = _strdup(str);
#else