forked from github/server
make str_strdup more forgiving
This commit is contained in:
parent
f2e6825dab
commit
9e6ae0edc1
1 changed files with 1 additions and 0 deletions
|
@ -218,6 +218,7 @@ unsigned int wang_hash(unsigned int a)
|
|||
}
|
||||
|
||||
char *str_strdup(const char *s) {
|
||||
if (s == NULL) return NULL;
|
||||
#ifdef HAVE_STRDUP
|
||||
return strdup(s);
|
||||
#elif defined(_MSC_VER)
|
||||
|
|
Loading…
Reference in a new issue